Skip to content

Commit

Permalink
ns
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Aug 2, 2023
1 parent 1604c31 commit fb313f8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void testShutdown() throws TimeoutException {

Util.waitUntil(10000, 200, () -> timer.size() == 10);
timer.stop();
Util.waitUntil(2000, 200, () -> timer.size() == 0);
Util.waitUntil(10000, 200, () -> timer.size() == 0);
int size=timer.size();
assert size == 0 : "size=" + size + " (should be 0)";
}
Expand All @@ -160,9 +160,7 @@ public void testShutdown() throws TimeoutException {
/** Adds a task after shut down */
public void testShutdown2() {
timer.stop();

timer.schedule(() -> System.out.print("."), 500, TimeUnit.MILLISECONDS);

int size=timer.size();
assert size == 0;
}
Expand Down

0 comments on commit fb313f8

Please sign in to comment.