Skip to content

Commit a000d74

Browse files
committed
Fix Log4J2LoggingSystemTests.configLocationsWithConfigurationFileSystemProperty()
See spring-projectsgh-32730
1 parent 0716493 commit a000d74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,8 @@ void configLocationsWithJacksonDatabindAndDataformatYaml() {
314314
void configLocationsWithConfigurationFileSystemProperty() {
315315
System.setProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY, "custom-log4j2.properties");
316316
try {
317-
assertThat(this.loggingSystem.getStandardConfigLocations()).contains("log4j2-test.properties",
318-
"log4j2-test.xml", "log4j2.properties", "log4j2.xml");
317+
assertThat(this.loggingSystem.getStandardConfigLocations()).containsExactly("log4j2-test.properties",
318+
"log4j2-test.xml", "log4j2.properties", "log4j2.xml", "custom-log4j2.properties");
319319
}
320320
finally {
321321
System.clearProperty(ConfigurationFactory.CONFIGURATION_FILE_PROPERTY);

0 commit comments

Comments
 (0)