Skip to content

Commit

Permalink
OAK-11254 : added sleep after creation of DocumentNodeStore to reduce…
Browse files Browse the repository at this point in the history
… likelyhood of backgroundPurge to interfere with testing and clean up branch commits on root
  • Loading branch information
stefan-egli committed Nov 6, 2024
1 parent 2e98335 commit 1a91846
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,15 @@ private DocumentNodeStore newStore(int clusterId) {
if (clusterId > 0) {
builder.setClusterId(clusterId);
}
return builder.getNodeStore();
DocumentNodeStore nodeStore = builder.getNodeStore();
// OAK-11254 : adding a temporary sleep to reduce likelyhood of
// backgroundPurge to interfere with test
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
fail("got interrupted");
}
return nodeStore;
}

private RevisionVector mergedBranchCommit(Consumer<NodeBuilder> buildFunction) throws Exception {
Expand Down

0 comments on commit 1a91846

Please sign in to comment.