diff --git a/nitrite-mvstore-adapter/src/test/java/org/dizitart/no2/integration/NitriteStressTest.java b/nitrite-mvstore-adapter/src/test/java/org/dizitart/no2/integration/NitriteStressTest.java index 5fc8cc7f..dbb1fc5a 100644 --- a/nitrite-mvstore-adapter/src/test/java/org/dizitart/no2/integration/NitriteStressTest.java +++ b/nitrite-mvstore-adapter/src/test/java/org/dizitart/no2/integration/NitriteStressTest.java @@ -147,7 +147,7 @@ public void testRepoPerformanceWithIndex() { assertNotNull(item); repo.insert(item); } - repo.remove(Filter.ALL); + assertEquals(repo.size(), 10000); repo.drop(); // actual calculation @@ -157,6 +157,7 @@ public void testRepoPerformanceWithIndex() { } repo.remove(Filter.ALL); + assertEquals(repo.size(), 0); } @Test @@ -168,7 +169,6 @@ public void testRepoPerformanceWithoutIndex() { assertNotNull(item); repo.insert(item); } - repo.remove(Filter.ALL); repo.drop(); // actual calculation @@ -178,6 +178,7 @@ public void testRepoPerformanceWithoutIndex() { } repo.remove(Filter.ALL); + assertEquals(repo.size(), 0); } private List createTestSet() {