-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support multiple collector.collect
-calls within 1 test
#22
Comments
collect
within 1 testcollector.collect
-calls within 1 test
I would like something similar so that I can test my peerlibrary:reactive-publish based publications that change if the underlying query changes. |
a quick workaround is to simply instanciate more collectors, like so:
of course that does NOT make the code look clean and simple |
Hi, sorry for the slow turn around on this. Exactly how isn't it working to call |
@thebarty I personally do not see a reason to run the two publications sequentially. This would be as putting it into two tests. But I see a reason to run them in parallel (as the other publication is still running). Since the Here's a sample:
Hope it helps in your case as well. If you want, you can also use this to collect to the same collector. This would then be the same as to subscribe to two publications on one client. EDIT: You only need to call the done-method yourself when using |
Hi Johan,
first of all: thanks for this cool package!! 👍
I have a useCase where I am creating shitloads of fixtures (they take about 10 seconds to be created) and I'd love to write ONE integrational-test, testing different subscriptions - all within ONE test.
The problem is that
collecter.collect
can only be run ONCE within the testcase.It would be so cool if we could use the syntax in synchronous style, so that we can call
collecter.collect
multiple times, like so:or
Any chance or trick of supporting this?
The text was updated successfully, but these errors were encountered: