diff --git a/reactor-test/src/main/java/reactor/test/scheduler/VirtualTimeScheduler.java b/reactor-test/src/main/java/reactor/test/scheduler/VirtualTimeScheduler.java index 9d019ca11b..2daad544b6 100644 --- a/reactor-test/src/main/java/reactor/test/scheduler/VirtualTimeScheduler.java +++ b/reactor-test/src/main/java/reactor/test/scheduler/VirtualTimeScheduler.java @@ -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); } @@ -399,7 +398,6 @@ public Disposable schedulePeriodically(Runnable task, periodInNanoseconds); replace(periodicTask, schedule(periodicTask, initialDelay, unit)); - advanceTime(); return periodicTask; }