Skip to content

Commit abe9c98

Browse files
Increasing Unit Test Timeout for Slow Machines
- Increasing timeout by a lot to handle slow machines such as this: https://netflixoss.ci.cloudbees.com/job/RxJava-pull-requests/629/testReport/junit/rx.schedulers/ExecutorSchedulerTests/recursionUsingFunc2/ - The timeout is only there if a deadlock or memory leak occurs (which is what this PR is fixing) so when everything is healthy it does not timeout
1 parent b7e6410 commit abe9c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rxjava-core/src/test/java/rx/schedulers/AbstractSchedulerConcurrencyTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public Subscription call(Scheduler innerScheduler, Long i) {
163163
assertEquals(10, counter.get());
164164
}
165165

166-
@Test(timeout = 8000)
166+
@Test(timeout = 20000)
167167
public void recursionUsingFunc2() throws InterruptedException {
168168
final CountDownLatch latch = new CountDownLatch(1);
169169
getScheduler().schedule(1L, new Func2<Scheduler, Long, Subscription>() {
@@ -185,7 +185,7 @@ public Subscription call(Scheduler innerScheduler, Long i) {
185185
latch.await();
186186
}
187187

188-
@Test(timeout = 8000)
188+
@Test(timeout = 20000)
189189
public void recursionUsingAction0() throws InterruptedException {
190190
final CountDownLatch latch = new CountDownLatch(1);
191191
getScheduler().schedule(new Action1<Action0>() {

0 commit comments

Comments
 (0)