Skip to content

Commit

Permalink
Merge pull request #3086 from davidmoten/exec-sched-test-timing
Browse files Browse the repository at this point in the history
improve ExecutorSchedulerTest.testOnBackpressureDrop
  • Loading branch information
akarnokd committed Jul 23, 2015
2 parents 1210182 + e25cd27 commit 0cf6e64
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 0cf6e64

Please sign in to comment.