-
Notifications
You must be signed in to change notification settings - Fork 3k
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
expand: fixes and tests #788
Conversation
Add subscription assertions on expand tests. Add concurrency-related tests.
Fix expand() in order to emit each next value only once. It was previously emitting those values multiple times when a concurrency limit was set.
: 👍 I was hitting while I try to add test coverage for this operator, hadn't look in detail at the moment. |
😎 |
return Observable.empty(); | ||
} | ||
return cold(e2shape, { z: x + x }); | ||
}, concurrencyLimit); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does concurrency limit ignorance works when it's delivered as param of expand
compare to other cases where it delivers and expect to honor those limit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that if the concurrency limit is high enough, then the behavior should be the same as not specifying it at all (which means Infinity). It's important to test because there is an if
statement that only runs when the parameter is finite. We want to be sure "very big number" works the same as "infinite".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
understood. thought not passed
means explicitly skips concurrency limits.
In general change looks good to me. |
Fix expand() in order to emit each next value only once. It was previously emitting those values
multiple times when a concurrency limit was set.
Add subscription assertions on expand tests. Add concurrency-related tests.