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

Non-deterministic test - OperatorPublishTest.testObserveOn #2933

Closed
davidmoten opened this issue May 6, 2015 · 2 comments
Closed

Non-deterministic test - OperatorPublishTest.testObserveOn #2933

davidmoten opened this issue May 6, 2015 · 2 comments

Comments

@davidmoten
Copy link
Collaborator

Occurred in Travis build https://travis-ci.org/ReactiveX/RxJava/builds/61414126

rx.internal.operators.OperatorPublishTest > testObserveOn FAILED
    java.lang.AssertionError: expected:<1000> but was:<994>
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.failNotEquals(Assert.java:647)
        at org.junit.Assert.assertEquals(Assert.java:128)
        at org.junit.Assert.assertEquals(Assert.java:472)
        at org.junit.Assert.assertEquals(Assert.java:456)
        at rx.internal.operators.OperatorPublishTest.testObserveOn(OperatorPublishTest.java:412)
@akarnokd
Copy link
Member

akarnokd commented May 6, 2015

Will be fixed with #2928: it's the classical case when I read some state before I read the terminal indicator which opens up a window where more values may come in between the two rendering the completion check incorrect.

@akarnokd
Copy link
Member

akarnokd commented May 6, 2015

Fixed via #2934.

@akarnokd akarnokd closed this as completed May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants