Skip to content

Commit

Permalink
reduce probability of ExecutorSchedulerTest.testOnBackpressureDrop fa…
Browse files Browse the repository at this point in the history
…iling on slow machine
  • Loading branch information
davidmoten committed Jul 16, 2015
1 parent 96786bb commit e25cd27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/rx/schedulers/ExecutorSchedulerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ public void execute(Runnable command) {
};
ExecutorSchedulerWorker w = (ExecutorSchedulerWorker)Schedulers.from(e).createWorker();

w.schedule(Actions.empty(), 1, TimeUnit.MILLISECONDS);
w.schedule(Actions.empty(), 50, TimeUnit.MILLISECONDS);

assertTrue(w.tasks.hasSubscriptions());

Thread.sleep(100);
Thread.sleep(150);

assertFalse(w.tasks.hasSubscriptions());
}
Expand Down

0 comments on commit e25cd27

Please sign in to comment.