Skip to content

Commit

Permalink
Revert auto-advanceTime on schedule given latest expectation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Maldini committed Jan 3, 2018
1 parent 64ea0d3 commit 79f0e22
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ public Disposable schedule(Runnable run, long delayTime, TimeUnit unit) {
run,
COUNTER.getAndIncrement(VirtualTimeScheduler.this));
queue.add(timedTask);
advanceTime();
return () -> queue.remove(timedTask);
}

Expand All @@ -399,7 +398,6 @@ public Disposable schedulePeriodically(Runnable task,
periodInNanoseconds);

replace(periodicTask, schedule(periodicTask, initialDelay, unit));
advanceTime();
return periodicTask;
}

Expand Down

0 comments on commit 79f0e22

Please sign in to comment.