Hi,
I can't quite determine whether this is a defect in my test, or my interpretation of the spec.
I have an Iterable publisher, that is fully synchronous. With this test, it effectively tries to publish 0..Integer.MAX_VALUE which takes some time.
This won't return until all of the values have been published:
https://github.com/reactive-streams/reactive-streams-jvm/blob/master/tck/src/main/java/org/reactivestreams/tck/PublisherVerification.java#L1057
Solutions I can see:
- Use something more reasonable than Integer.MAX_VALUE.
- Cancel the subscription when
callsCounter == 0
Or of course, my implementation is wrong.