Skip to content

Commit 560664e

Browse files
committed
Merge pull request #166 from reactive-streams/wip-165-√
Fixes #165 by making sure the TCK tests for IllegalArgumentException iso...
2 parents ea61e6a + b68dff7 commit 560664e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tck/src/main/java/org/reactivestreams/tck/PublisherVerification.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public void spec309_requestZeroMustSignalIllegalArgumentException() throws Throw
633633
@Override public void run(Publisher<T> pub) throws Throwable {
634634
final ManualSubscriber<T> sub = env.newManualSubscriber(pub);
635635
sub.request(0);
636-
sub.expectErrorWithMessage(IllegalStateException.class, "3.9"); // we do require implementations to mention the rule number at the very least
636+
sub.expectErrorWithMessage(IllegalArgumentException.class, "3.9"); // we do require implementations to mention the rule number at the very least
637637
}
638638
});
639639
}
@@ -647,7 +647,7 @@ public void run(Publisher<T> pub) throws Throwable {
647647
final ManualSubscriber<T> sub = env.newManualSubscriber(pub);
648648
final Random r = new Random();
649649
sub.request(-r.nextInt(Integer.MAX_VALUE));
650-
sub.expectErrorWithMessage(IllegalStateException.class, "3.9"); // we do require implementations to mention the rule number at the very least
650+
sub.expectErrorWithMessage(IllegalArgumentException.class, "3.9"); // we do require implementations to mention the rule number at the very least
651651
}
652652
});
653653
}

0 commit comments

Comments
 (0)