Skip to content

Commit

Permalink
Merge pull request #375 from ktoso/wip-209-must-onSubscribe-ktoso
Browse files Browse the repository at this point in the history
=tck #362 blackbox 209 must issue onSubscribe before any other signal
  • Loading branch information
viktorklang authored Jun 16, 2017
2 parents 0447764 + 404495c commit 8d4b33b
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,16 @@ public void required_spec209_blackbox_mustBePreparedToReceiveAnOnCompleteSignalW
public void run(BlackboxTestStage stage) throws Throwable {
final Publisher<T> pub = new Publisher<T>() {
@Override
public void subscribe(Subscriber<? super T> s) {
public void subscribe(final Subscriber<? super T> s) {
s.onSubscribe(new Subscription() {
@Override public void request(long n) {
// do nothing...
}
@Override public void cancel() {
// do nothing...
}
});
// immediately complete
s.onComplete();
}
};
Expand Down

0 comments on commit 8d4b33b

Please sign in to comment.