mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
Test: Add assumeFalse for test that cannot pass on windows
closes #28095
This commit is contained in:
parent
eaa636d4bb
commit
2e08916fa6
@ -531,6 +531,12 @@ public class PluginsServiceTests extends ESTestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void testNonExtensibleDep() throws Exception {
|
public void testNonExtensibleDep() throws Exception {
|
||||||
|
// This test opens a child classloader, reading a jar under the test temp
|
||||||
|
// dir (a dummy plugin). Classloaders are closed by GC, so when test teardown
|
||||||
|
// occurs the jar is deleted while the classloader is still open. However, on
|
||||||
|
// windows, files cannot be deleted when they are still open by a process.
|
||||||
|
assumeFalse("windows deletion behavior is asinine", Constants.WINDOWS);
|
||||||
|
|
||||||
Path homeDir = createTempDir();
|
Path homeDir = createTempDir();
|
||||||
Settings settings = Settings.builder().put(Environment.PATH_HOME_SETTING.getKey(), homeDir).build();
|
Settings settings = Settings.builder().put(Environment.PATH_HOME_SETTING.getKey(), homeDir).build();
|
||||||
Path pluginsDir = homeDir.resolve("plugins");
|
Path pluginsDir = homeDir.resolve("plugins");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user