[TEST] Close node env otherwise windows can't delete tmp files
This commit is contained in:
parent
176b4eb1ed
commit
e6908de04a
|
@ -121,6 +121,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
|
||||||
}
|
}
|
||||||
IOUtils.close(locks);
|
IOUtils.close(locks);
|
||||||
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
||||||
|
env.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -139,6 +140,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
|
||||||
assertTrue(indices.contains("foo" + i));
|
assertTrue(indices.contains("foo" + i));
|
||||||
}
|
}
|
||||||
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
||||||
|
env.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -193,6 +195,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
|
||||||
assertFalse(Files.exists(path));
|
assertFalse(Files.exists(path));
|
||||||
}
|
}
|
||||||
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
||||||
|
env.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -223,6 +226,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
|
||||||
}
|
}
|
||||||
assertEquals("too many shards found", shards.size(), 0);
|
assertEquals("too many shards found", shards.size(), 0);
|
||||||
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
assertTrue("LockedShards: " + env.lockedShards(), env.lockedShards().isEmpty());
|
||||||
|
env.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -285,7 +289,7 @@ public class NodeEnvironmentTests extends ElasticsearchTestCase {
|
||||||
assertEquals(flipFlop[i].get(), 0);
|
assertEquals(flipFlop[i].get(), 0);
|
||||||
assertEquals(counts[i].value, countsAtomic[i].get());
|
assertEquals(counts[i].value, countsAtomic[i].get());
|
||||||
}
|
}
|
||||||
|
env.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String[] tmpPaths() {
|
private String[] tmpPaths() {
|
||||||
|
|
Loading…
Reference in New Issue