Skip to content

Commit

Permalink
In managed ledger BK test, wait for background ledger roll-over to co…
Browse files Browse the repository at this point in the history
…mplete before shutting down (#35)

Fixes #16: Intermittent test failure in ManagedLedgerBkTest.testConcurrentMarkDelete
  • Loading branch information
merlimat committed Sep 22, 2016
1 parent 997d8f6 commit 2d75e88
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ public void testConcurrentMarkDelete() throws Exception {
future.get();
}

// Since in this test we roll-over the cursor ledger every 10 entries acknowledged, the background roll back
// might still be happening when the futures are completed.
Thread.sleep(1000);
factory.shutdown();
}

Expand Down

0 comments on commit 2d75e88

Please sign in to comment.