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

Issue 329: Fix non-deterministic unit tests #332

Merged

Conversation

benjchristensen
Copy link
Member

I'm sure there are others, but I've tried to fix the ones reported in #329

Attempt to fix non-determinism ReactiveX#329
Made unit tests work on private instances in each test rather than against static global.
Removed use of Thread.sleep to fix non-determinism issue reported in ReactiveX#329
Removed use of Thread.sleep and changed assertion to allow for the expected race condition between the counter loop and unsubscribe event to fix non-determinism issue reported in ReactiveX#329
Increased delta value from 2 to 10 to try and resolve issue reported in issue ReactiveX#329
Refactored to use BlockingObservable instead of non-blocking subscribe and waiting on the underlying thread (it was only waiting on one of two threads running).
This should resolve one of the issues reported in http://github.com/Netflix/RxJava/issues/329
benjchristensen added a commit that referenced this pull request Aug 31, 2013
Issue 329: Fix non-deterministic unit tests
@benjchristensen benjchristensen merged commit ee94970 into ReactiveX:master Aug 31, 2013
@cloudbees-pull-request-builder

RxJava-pull-requests #214 FAILURE
Looks like there's a problem with this pull request

rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
…tests

Issue 329: Fix non-deterministic unit tests
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

Successfully merging this pull request may close these issues.

None yet

2 participants