Skip to content

Commit

Permalink
Fix show status test
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Sep 10, 2024
1 parent a7e16a3 commit a748191
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,14 @@ void testClose() {

@Test
void testShowStatus() throws InterruptedException {
// Wait until status has expired. This should be 150ms
final int interval = 200;
Thread.sleep(interval);
Assertions.assertTrue(ImageJUtils.showStatus("first"));
Assertions.assertFalse(ImageJUtils.showStatus("second"));
Assertions.assertFalse(ImageJUtils.showStatus(() -> "third"));
// Wait until status has expired. This should be 150ms
Thread.sleep(200);
Thread.sleep(interval);
Assertions.assertTrue(ImageJUtils.showStatus(() -> "fourth"));
}

Expand Down

0 comments on commit a748191

Please sign in to comment.