Skip to content

Commit

Permalink
[test] Fix unstable test: IndexBootstrapTest.testBoostrap
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Apr 7, 2024
1 parent b7a77c9 commit a1c94ab
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ public void testBoostrap() throws Exception {
.containsExactlyInAnyOrder(
GenericRow.of(2, 1, 3), GenericRow.of(4, 2, 5), GenericRow.of(6, 3, 7));
result.clear();

// In ParallelExecution, latch.countDown first, then close the reader, it may not be closed
// here, (this is good, beneficial for query speed) but TableTestBase.after will check leak
// streams. So sleep here to avoid unstable.
Thread.sleep(1000);
}

@Test
Expand Down

0 comments on commit a1c94ab

Please sign in to comment.