Skip to content

Commit eb9af4d

Browse files
author
jmhofer
committed
Fixed a bug in the test scheduler that happened when advancing time by a too little amount
1 parent 9563a1b commit eb9af4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rxjava-core/src/main/java/rx/concurrency/TestScheduler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ private void triggerActions(long targetTimeInNanos) {
7979
while (!queue.isEmpty()) {
8080
TimedAction<?> current = queue.peek();
8181
if (current.time > targetTimeInNanos) {
82+
time = targetTimeInNanos;
8283
break;
8384
}
8485
time = current.time;

0 commit comments

Comments
 (0)