mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix HazelcastAutoConfigurationServerTests on Windows
See gh-33687
This commit is contained in:
parent
5a95fd0d2b
commit
205018ec8f
@ -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);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user