Skip to content

Commit 404495c

Browse files
committed
=tck #362 blackbox 209 must issue onSubscribe before any other signal
1 parent 2879ce0 commit 404495c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

+10-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,16 @@ public void required_spec209_blackbox_mustBePreparedToReceiveAnOnCompleteSignalW
287287
public void run(BlackboxTestStage stage) throws Throwable {
288288
final Publisher<T> pub = new Publisher<T>() {
289289
@Override
290-
public void subscribe(Subscriber<? super T> s) {
290+
public void subscribe(final Subscriber<? super T> s) {
291+
s.onSubscribe(new Subscription() {
292+
@Override public void request(long n) {
293+
// do nothing...
294+
}
295+
@Override public void cancel() {
296+
// do nothing...
297+
}
298+
});
299+
// immediately complete
291300
s.onComplete();
292301
}
293302
};

0 commit comments

Comments
 (0)