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

OperatorFilter failure #1522

Closed
davidmoten opened this issue Jul 26, 2014 · 3 comments
Closed

OperatorFilter failure #1522

davidmoten opened this issue Jul 26, 2014 · 3 comments
Labels
Milestone

Comments

@davidmoten
Copy link
Collaborator

This test hangs with 0.20.0-RC3 I'm supposing because of OperatorFilter:

import org.junit.Assert;
import org.junit.Test;

import rx.Observable;
import rx.functions.Functions;

public class BackpressureTest {

    @Test
    public void testDoesNotHang() {

        Assert.assertEquals(0, Observable
                .empty()
                .count()
                .filter(Functions.alwaysFalse())
                .toList()
                .toBlocking().single().size());
    }

}
@benjchristensen
Copy link
Member

Thanks for the report, I'll take a look soon.

@zsxwing
Copy link
Member

zsxwing commented Jul 26, 2014

@benjchristensen I'm working on it. Looks a bug in takeLast

zsxwing added a commit to zsxwing/RxJava that referenced this issue Jul 26, 2014
zsxwing added a commit to zsxwing/RxJava that referenced this issue Jul 26, 2014
zsxwing added a commit to zsxwing/RxJava that referenced this issue Jul 26, 2014
zsxwing added a commit to zsxwing/RxJava that referenced this issue Jul 28, 2014
benjchristensen added a commit that referenced this issue Jul 29, 2014
@benjchristensen
Copy link
Member

This test is passing now.

@benjchristensen benjchristensen added this to the 0.20 milestone Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants