Skip to content

Commit bc806a8

Browse files
Merge pull request #1490 from benjchristensen/unit-tests
non-deterministic timeouts on slow machines
2 parents bb56093 + 4633809 commit bc806a8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

rxjava-core/src/test/java/rx/internal/operators/OperatorRetryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public void onNext(T v) {
351351
}
352352
}
353353

354-
@Test(timeout = 1000)
354+
@Test(timeout = 10000)
355355
public void testUnsubscribeAfterError() {
356356

357357
@SuppressWarnings("unchecked")
@@ -378,7 +378,7 @@ public void testUnsubscribeAfterError() {
378378
assertEquals("Only 1 active subscription", 1, so.maxActive.get());
379379
}
380380

381-
@Test(timeout = 1000)
381+
@Test(timeout = 10000)
382382
public void testTimeoutWithRetry() {
383383

384384
@SuppressWarnings("unchecked")

rxjava-core/src/test/java/rx/internal/operators/OperatorRetryWithPredicateTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public void call(Integer n) {
217217
assertEquals(1, count.get());
218218
}
219219

220-
@Test(timeout = 1000)
220+
@Test(timeout = 10000)
221221
public void testUnsubscribeAfterError() {
222222

223223
@SuppressWarnings("unchecked")
@@ -244,7 +244,7 @@ public void testUnsubscribeAfterError() {
244244
assertEquals("Only 1 active subscription", 1, so.maxActive.get());
245245
}
246246

247-
@Test(timeout = 1000)
247+
@Test(timeout = 10000)
248248
public void testTimeoutWithRetry() {
249249

250250
@SuppressWarnings("unchecked")

0 commit comments

Comments
 (0)