Skip to content

Commit e25cd27

Browse files
committed
reduce probability of ExecutorSchedulerTest.testOnBackpressureDrop failing on slow machine
1 parent 96786bb commit e25cd27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/rx/schedulers/ExecutorSchedulerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ public void execute(Runnable command) {
177177
};
178178
ExecutorSchedulerWorker w = (ExecutorSchedulerWorker)Schedulers.from(e).createWorker();
179179

180-
w.schedule(Actions.empty(), 1, TimeUnit.MILLISECONDS);
180+
w.schedule(Actions.empty(), 50, TimeUnit.MILLISECONDS);
181181

182182
assertTrue(w.tasks.hasSubscriptions());
183183

184-
Thread.sleep(100);
184+
Thread.sleep(150);
185185

186186
assertFalse(w.tasks.hasSubscriptions());
187187
}

0 commit comments

Comments
 (0)