Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

=tck #362 blackbox 209 must issue onSubscribe before any other signal #375

Merged

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented May 29, 2017

Follow up to #362, the TCK violated the spec without good reason (wasn't testing for anything like that)

@@ -287,7 +287,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() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a valid Subscription though :)

Copy link
Contributor Author

@ktoso ktoso May 29, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be more helpful - what would you want it to do;
The TCK contains plenty "edgy" things, since they're designed to test a single thing only

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely, I guess what we could do is to either put in a small comment explaining why, or we could throw AssertionErrors when unsupported invocations occur, or provide a more complete implementation—if we already have any in the TCK that is.

@viktorklang viktorklang merged commit 8d4b33b into reactive-streams:master Jun 16, 2017
@viktorklang viktorklang added this to the 1.0.1 milestone Jun 16, 2017
@ktoso ktoso deleted the wip-209-must-onSubscribe-ktoso branch June 26, 2017 18:33
@ktoso ktoso mentioned this pull request Jun 26, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants