Fix Windows path test failure

See gh-45398
This commit is contained in:
Phillip Webb 2025-05-08 12:15:37 -07:00
parent ba6539704e
commit ae76779f26
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ class Log4J2LoggingSystemTests extends AbstractLoggingSystemTests {
Configuration configuration = this.loggingSystem.getConfiguration(); Configuration configuration = this.loggingSystem.getConfiguration();
assertThat(output).contains("Hello world").doesNotContain("Hidden"); assertThat(output).contains("Hello world").doesNotContain("Hidden");
assertThat(new File(tmpDir() + "/spring.log")).exists(); assertThat(new File(tmpDir() + "/spring.log")).exists();
assertThat(configuration.getConfigurationSource().getLocation()).contains("/log4j2-file.xml"); assertThat(configuration.getConfigurationSource().getLocation()).contains("log4j2-file.xml");
} }
@Test @Test