mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
Fix HazelcastAutoConfigurationServerTests on Windows
See gh-33687
This commit is contained in:
+2
-1
@@ -156,7 +156,8 @@ class HazelcastAutoConfigurationServerTests {
|
||||
return (context) -> {
|
||||
Config config = context.getBean(HazelcastInstance.class).getConfig();
|
||||
String configurationLocation = (config.getConfigurationUrl() != null)
|
||||
? config.getConfigurationUrl().toString() : config.getConfigurationFile().getAbsolutePath();
|
||||
? config.getConfigurationUrl().toString()
|
||||
: config.getConfigurationFile().toURI().toURL().toString();
|
||||
assertThat(configurationLocation).endsWith(location);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user