Skip to content

Commit 6043d36

Browse files
committed
Keep the randomness.
1 parent d360cc6 commit 6043d36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tck/src/main/java/org/reactivestreams/tck/PublisherVerification.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,8 @@ public void required_spec309_requestNegativeNumberMustSignalIllegalArgumentExcep
884884
@Override
885885
public void run(Publisher<T> pub) throws Throwable {
886886
final ManualSubscriber<T> sub = env.newManualSubscriber(pub);
887-
sub.request(-1);
887+
final Random r = new Random();
888+
sub.request(-r.nextInt(Integer.MAX_VALUE) - 1);
888889
sub.expectErrorWithMessage(IllegalArgumentException.class, "3.9"); // we do require implementations to mention the rule number at the very least
889890
}
890891
});

0 commit comments

Comments
 (0)