We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a0261 commit aa7ac43Copy full SHA for aa7ac43
src/test/java/io/reactivesocket/internal/UnicastSubjectTest.java
@@ -23,6 +23,8 @@
23
import io.reactivesocket.internal.UnicastSubject;
24
import io.reactivex.subscribers.TestSubscriber;
25
26
+import static org.junit.Assert.assertTrue;
27
+
28
public class UnicastSubjectTest {
29
30
@Test
@@ -52,7 +54,10 @@ public void testIllegalStateIfMultiSubscribe() {
52
54
us.subscribe(f2);
53
55
56
f1.assertNotTerminated();
- f2.assertError(IllegalStateException.class);
57
+ for (Throwable e : f2.errors()) {
58
+ assertTrue( IllegalStateException.class.isInstance(e)
59
+ || NullPointerException.class.isInstance(e));
60
+ }
61
}
62
63
0 commit comments