Skip to content

Commit

Permalink
Try to stabilize PausedSchedulerTest
Browse files Browse the repository at this point in the history
Let's give things a bit more time as CI is slow.
  • Loading branch information
gsmet authored and holly-cummins committed Feb 8, 2024
1 parent 2235027 commit 9176c4e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ public void testSchedulerPauseResume() throws InterruptedException {

// this should have no effect because the scheduler is paused
jobs.running.set(true);
assertFalse(Jobs.JOB_LATCH.await(2, TimeUnit.SECONDS));
assertFalse(Jobs.JOB_LATCH.await(4, TimeUnit.SECONDS));

scheduler.resume();
assertTrue(scheduler.isRunning());
assertTrue(Jobs.RESUMED_EVENT.get());

assertTrue(Jobs.JOB_LATCH.await(3, TimeUnit.SECONDS));
assertTrue(Jobs.EVENT_LATCH.await(3, TimeUnit.SECONDS));
assertTrue(Jobs.JOB_LATCH.await(4, TimeUnit.SECONDS));
assertTrue(Jobs.EVENT_LATCH.await(4, TimeUnit.SECONDS));
}

@Singleton
Expand Down

0 comments on commit 9176c4e

Please sign in to comment.