use of io.reactivex.rxjava3.internal.operators.parallel.ParallelSortedJoin in project RxJava by ReactiveX.
the class ParallelSortedJoinTest method comparatorCrashWhileMainOnError.
@Test
public void comparatorCrashWhileMainOnError() throws Throwable {
TestHelper.withErrorTracking(errors -> {
PublishProcessor<List<Integer>> pp1 = PublishProcessor.create();
PublishProcessor<List<Integer>> pp2 = PublishProcessor.create();
new ParallelSortedJoin<>(ParallelFlowable.fromArray(pp1, pp2), (a, b) -> {
pp1.onError(new IOException());
throw new TestException();
}).test();
pp1.onNext(Arrays.asList(1));
pp2.onNext(Arrays.asList(2));
pp1.onComplete();
pp2.onComplete();
TestHelper.assertUndeliverable(errors, 0, TestException.class);
});
}
Aggregations