Skip to content

Commit

Permalink
Fix flaky obtainTasksFromPlugin() test
Browse files Browse the repository at this point in the history
  • Loading branch information
astei committed May 15, 2023
1 parent 92ae25b commit 40b76c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ void obtainTasksFromPlugin() throws Exception {

scheduler.buildTask(FakePluginManager.PLUGIN_A, task -> {
runningLatch.countDown();
task.cancel();
try {
endingLatch.await();
} catch (InterruptedException ignored) {
Thread.currentThread().interrupt();
}
task.cancel();
}).delay(50, TimeUnit.MILLISECONDS)
.repeat(Duration.ofMillis(5))
.schedule();
Expand Down

0 comments on commit 40b76c6

Please sign in to comment.