diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfigurationTests.java index 556cb6d3c1..90d8bbce0e 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/influx/InfluxDbAutoConfigurationTests.java @@ -79,8 +79,7 @@ class InfluxDbAutoConfigurationTests { @Test void influxDbWithCustomizer() { this.contextRunner.withBean(InfluxDbCustomizer.class, () -> (influxDb) -> influxDb.setDatabase("test")) - .withPropertyValues("spring.influx.url=http://localhost", "spring.influx.database=sample-db") - .run((context) -> { + .withPropertyValues("spring.influx.url=http://localhost").run((context) -> { assertThat(context).hasSingleBean(InfluxDB.class); InfluxDB influxDb = context.getBean(InfluxDB.class); assertThat(influxDb).hasFieldOrPropertyWithValue("database", "test");