Skip to content

Commit 285ed87

Browse files
committed
Give more time to certain concurrency tests.
1 parent a0549a8 commit 285ed87

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/test/java/rx/internal/operators/OperatorRetryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ public void testTimeoutWithRetry() {
682682
assertEquals("Start 6 threads, retry 5 then fail on 6", 6, so.efforts.get());
683683
}
684684

685-
@Test(timeout = 10000)
685+
@Test(timeout = 15000)
686686
public void testRetryWithBackpressure() throws InterruptedException {
687687
final int NUM_RETRIES = RxRingBuffer.SIZE * 2;
688688
for (int i = 0; i < 400; i++) {
@@ -705,7 +705,7 @@ public void testRetryWithBackpressure() throws InterruptedException {
705705
inOrder.verifyNoMoreInteractions();
706706
}
707707
}
708-
@Test(timeout = 10000)
708+
@Test(timeout = 15000)
709709
public void testRetryWithBackpressureParallel() throws InterruptedException {
710710
final int NUM_RETRIES = RxRingBuffer.SIZE * 2;
711711
int ncpu = Runtime.getRuntime().availableProcessors();

src/test/java/rx/subjects/ReplaySubjectBoundedConcurrencyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public void run() {
503503

504504
t.join();
505505
}
506-
@Test(timeout = 5000)
506+
@Test(timeout = 10000)
507507
public void testConcurrentSizeAndHasAnyValueTimeBounded() throws InterruptedException {
508508
final ReplaySubject<Object> rs = ReplaySubject.createWithTime(1, TimeUnit.MILLISECONDS, Schedulers.computation());
509509
final CyclicBarrier cb = new CyclicBarrier(2);

src/test/java/rx/subjects/ReplaySubjectConcurrencyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public void call() {
407407
worker.unsubscribe();
408408
}
409409
}
410-
@Test(timeout = 5000)
410+
@Test(timeout = 10000)
411411
public void testConcurrentSizeAndHasAnyValue() throws InterruptedException {
412412
final ReplaySubject<Object> rs = ReplaySubject.create();
413413
final CyclicBarrier cb = new CyclicBarrier(2);

0 commit comments

Comments
 (0)