Fix HazelcastAutoConfigurationServerTests on Windows
See gh-33687
This commit is contained in:
parent
5a95fd0d2b
commit
205018ec8f
|
@ -156,7 +156,8 @@ class HazelcastAutoConfigurationServerTests {
|
||||||
return (context) -> {
|
return (context) -> {
|
||||||
Config config = context.getBean(HazelcastInstance.class).getConfig();
|
Config config = context.getBean(HazelcastInstance.class).getConfig();
|
||||||
String configurationLocation = (config.getConfigurationUrl() != null)
|
String configurationLocation = (config.getConfigurationUrl() != null)
|
||||||
? config.getConfigurationUrl().toString() : config.getConfigurationFile().getAbsolutePath();
|
? config.getConfigurationUrl().toString()
|
||||||
|
: config.getConfigurationFile().toURI().toURL().toString();
|
||||||
assertThat(configurationLocation).endsWith(location);
|
assertThat(configurationLocation).endsWith(location);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue