-
Notifications
You must be signed in to change notification settings - Fork 533
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: untested rules #355
Comments
This would be illegal behavior from the Subscriber PoV. (Requesting after onError)
Question is if that is workable, since the rule mandates that signals must eventually stop? |
Which rule says that? Also why is |
@akarnokd 2.4: «Subscriber.onComplete() and Subscriber.onError(Throwable t) MUST consider the Subscription cancelled after having received the signal. |
3.6: After the Subscription is cancelled, additional Subscription.Request(long n) MUST be NOPs. Or is there a difference between actual cancellation and considered cancellation? |
@akarnokd Those are Subscription rules, not Subscriber rules. |
So the |
Also why is this TCK test valid if an // Verifies rule: https://github.com/reactive-streams/reactive-streams-jvm#1.7
@Override @Test
public void required_spec107_mustNotEmitFurtherSignalsOnceOnCompleteHasBeenSignalled() throws Throwable {
activePublisherTest(1, true, new PublisherTestRun<T>() {
@Override
public void run(Publisher<T> pub) throws Throwable {
ManualSubscriber<T> sub = env.newManualSubscriber(pub);
sub.request(10);
sub.nextElement();
sub.expectCompletion();
sub.request(10);
sub.expectNone();
}
});
} |
I thought I had replied here, sorry for that! Absolutely, since request signals are async, such signal could arrive after the onComplete and the requirement in the spec is that such signal should be noop. |
@reactive-streams/contributors Should we close this? |
I think the following tests could be meaningfully implemented:
untested_spec107_mustNotEmitFurtherSignalsOnceOnErrorHasBeenSignalled
untested_spec108_possiblyCanceledSubscriptionShouldNotReceiveOnErrorOrOnCompleteSignals
Publisher
and cancel from withinonSubscribe
, then see ifonComplete
was emitted or not. If not, pass the test, if it was emitted, skip the test.Publisher
, cancel inonNext
after the first item, etc.Publisher
and cancel from withinonSubscribe
, etc.(Also it depends on #354).
The text was updated successfully, but these errors were encountered: