Skip to content

Commit 557894d

Browse files
OAK-11027 flaky IncrementalStoreTest (#1979)
1 parent 8dca855 commit 557894d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

oak-run/src/test/java/org/apache/jackrabbit/oak/index/IncrementalStoreTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,9 @@ private static List<String> getNodeStatesWithPrefferedPathsAndPathPredicatesOver
709709

710710
private Backend createNodeStore(boolean readOnly) {
711711
MongoConnection c = connectionFactory.getConnection();
712+
if (!readOnly) {
713+
MongoUtils.dropCollections(c.getDatabase());
714+
}
712715
DocumentMK.Builder builder = builderProvider.newBuilder();
713716
builder.setMongoDB(c.getMongoClient(), c.getDBName());
714717
if (readOnly) {

0 commit comments

Comments
 (0)