Skip to content

Issue 329: Fix non-deterministic unit tests#332

Merged
benjchristensen merged 5 commits intoReactiveX:masterfrom
benjchristensen:issue-329-unit-tests
Aug 31, 2013
Merged

Issue 329: Fix non-deterministic unit tests#332
benjchristensen merged 5 commits intoReactiveX:masterfrom
benjchristensen:issue-329-unit-tests

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.

2 participants