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 requires immediate publishing of onError, but spec does not say this is required #559

Open
gmarcosb opened this issue Oct 9, 2024 · 0 comments

Comments

@gmarcosb
Copy link

gmarcosb commented Oct 9, 2024

In various TCK tests, there is an expectation that a closed/errored stream be immediately reported as such to the subscriber - see, for example, this test:

onSubscribeLatch.expectClose("Should have received onSubscribe");

However, the spec does not specify whether a subscriber should immediately get these callbacks, or if it should get them after a call to Subscription.request()

Getting no callbacks until a request is a bit more consistent with the other stream callback behaviors

But, at a minimum, it seems like the TCK test should support the case where a Publisher does not call onError/onComplete until the Subscriber makes a Subscription.request

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

No branches or pull requests

1 participant