Skip to content

Commit 205018e

Browse files
committed
Fix HazelcastAutoConfigurationServerTests on Windows
See gh-33687
1 parent 5a95fd0 commit 205018e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationServerTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ private ContextConsumer<AssertableApplicationContext> assertSpecificHazelcastSer
156156
return (context) -> {
157157
Config config = context.getBean(HazelcastInstance.class).getConfig();
158158
String configurationLocation = (config.getConfigurationUrl() != null)
159-
? config.getConfigurationUrl().toString() : config.getConfigurationFile().getAbsolutePath();
159+
? config.getConfigurationUrl().toString()
160+
: config.getConfigurationFile().toURI().toURL().toString();
160161
assertThat(configurationLocation).endsWith(location);
161162
};
162163
}

0 commit comments

Comments
 (0)