You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by mr...@apache.org on 2022/12/13 09:00:06 UTC
[jackrabbit-oak] branch trunk updated: OAK-10027: CacheWarmingTest does not clean up
This is an automated email from the ASF dual-hosted git repository.
mreutegg pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/trunk by this push:
new 219f15c78f OAK-10027: CacheWarmingTest does not clean up
new 52f81f776f Merge pull request #791 from mreutegg/OAK-10027
219f15c78f is described below
commit 219f15c78fbd45223c396df978646f55ef46701f
Author: Marcel Reutegger <ma...@gmail.com>
AuthorDate: Tue Dec 13 08:40:24 2022 +0100
OAK-10027: CacheWarmingTest does not clean up
---
.../oak/plugins/document/prefetch/CacheWarmingTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/prefetch/CacheWarmingTest.java b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/prefetch/CacheWarmingTest.java
index d391c21fe2..b306643848 100644
--- a/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/prefetch/CacheWarmingTest.java
+++ b/oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/prefetch/CacheWarmingTest.java
@@ -18,8 +18,6 @@ package org.apache.jackrabbit.oak.plugins.document.prefetch;
import static org.apache.jackrabbit.oak.plugins.document.DocumentNodeStore.SYS_PROP_PREFETCH;
import static org.apache.jackrabbit.oak.plugins.document.util.Utils.getIdFromPath;
-import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.lessThan;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
@@ -52,6 +50,7 @@ import org.apache.jackrabbit.oak.spi.commit.EmptyHook;
import org.apache.jackrabbit.oak.spi.state.NodeBuilder;
import org.apache.jackrabbit.oak.stats.Clock;
import org.jetbrains.annotations.Nullable;
+import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -78,6 +77,11 @@ public class CacheWarmingTest {
System.setProperty(SYS_PROP_PREFETCH, "true");
}
+ @AfterClass
+ public static void cleanUp() {
+ MongoUtils.dropCollections(MongoUtils.DB);
+ }
+
@Test
public void noop1() {
DocumentStore store = new MemoryDocumentStore();