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

expand: fixes and tests #788

Closed
wants to merge 2 commits into from
Closed

Conversation

staltz
Copy link
Member

@staltz staltz commented Nov 25, 2015

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.

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.
@kwonoj
Copy link
Member

kwonoj commented Nov 25, 2015

Fix expand() in order to emit each next value only once. It was previously emitting those values
multiple times

: 👍 I was hitting while I try to add test coverage for this operator, hadn't look in detail at the moment.

@kwonoj
Copy link
Member

kwonoj commented Nov 25, 2015

btw, huge PR combos :)

gif_20150606_203702

@staltz
Copy link
Member Author

staltz commented Nov 25, 2015

😎

return Observable.empty();
}
return cold(e2shape, { z: x + x });
}, concurrencyLimit);
Copy link
Member

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?

Copy link
Member Author

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".

Copy link
Member

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.

@kwonoj
Copy link
Member

kwonoj commented Nov 29, 2015

In general change looks good to me.

@kwonoj
Copy link
Member

kwonoj commented Nov 30, 2015

Merged with 01f86e5, thanks @staltz

@kwonoj kwonoj closed this Nov 30, 2015
@staltz staltz deleted the tests-expand branch November 30, 2015 20:42
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants