Skip to content

Commit

Permalink
3.x: Fix recent groupBy tests sometimes failing with MBE (#6994)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarnokd authored May 21, 2020
1 parent c693edb commit 3f386be
Showing 1 changed file with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2719,10 +2719,9 @@ public void issue6974Part2Case1ObserveOn() {
// .take(10)
.take(10, TimeUnit.MILLISECONDS)
, flatMapMaxConcurrency)
.test()
.subscribeWith(new TestSubscriberEx<>())
.awaitDone(5, TimeUnit.SECONDS)
.assertNoErrors()
.assertComplete();
.assertTerminated(); // MBE is possible if the async group closing is slow
}

@Test
Expand All @@ -2746,10 +2745,9 @@ public void issue6974Part2Case1ObserveOnHide() {
// .take(10)
.take(10, TimeUnit.MILLISECONDS)
, flatMapMaxConcurrency)
.test()
.subscribeWith(new TestSubscriberEx<>())
.awaitDone(5, TimeUnit.SECONDS)
.assertNoErrors()
.assertComplete();
.assertTerminated(); // MBE is possible if the async group closing is slow
}

@Test
Expand Down Expand Up @@ -2834,10 +2832,9 @@ public void issue6974Part2Case1ObserveOnConditional() {
// .take(10)
.take(10, TimeUnit.MILLISECONDS)
, flatMapMaxConcurrency)
.test()
.subscribeWith(new TestSubscriberEx<>())
.awaitDone(5, TimeUnit.SECONDS)
.assertNoErrors()
.assertComplete();
.assertTerminated(); // MBE is possible if the async group closing is slow
}

@Test
Expand All @@ -2862,10 +2859,9 @@ public void issue6974Part2Case1ObserveOnConditionalHide() {
// .take(10)
.take(10, TimeUnit.MILLISECONDS)
, flatMapMaxConcurrency)
.test()
.subscribeWith(new TestSubscriberEx<>())
.awaitDone(5, TimeUnit.SECONDS)
.assertNoErrors()
.assertComplete();
.assertTerminated(); // MBE is possible if the async group closing is slow
}

/*
Expand Down

0 comments on commit 3f386be

Please sign in to comment.