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

Stuck on [KWProbePoller check:] when using expectFutureValue #644

Open
Gargam opened this issue Sep 10, 2015 · 0 comments
Open

Stuck on [KWProbePoller check:] when using expectFutureValue #644

Gargam opened this issue Sep 10, 2015 · 0 comments

Comments

@Gargam
Copy link

Gargam commented Sep 10, 2015

Hello,

I have a growing project on development and I use Kiwi for it.
At first everything was fine but now, when I launch my tests, I'm stuck on a random test that will spinning forever.

When I pause the debugger to see what happen, I could see in the stack that I'm stuck on [KWProbePoller check:] method.

All tests "stuckable" are one using expectFutureValue ... shouldEventually.

Here's a snippet for the last "stucked" test

            beforeEach(^{
                [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {
                    return YES;
                } withStubResponse:^OHHTTPStubsResponse*(NSURLRequest *request) {
                    NSString* fixture = OHPathForFile(@"DeliverySuccess.json", self.class);
                    return [OHHTTPStubsResponse responseWithFileAtPath:fixture
                                                            statusCode:200 headers:@{@"Content-Type":@"application/json"}];
                }];
            });

            it(@"should have items 11 stored", ^{
                [client getDelivery:^(NSArray *deliveryItems) {
                    deliveryItemsCallback = deliveryItems;
                    storedDeliveryItems = [DeliveryItem MR_findAll];
                    playlistItems = [DeliveryItem itemsWithState:ArticleStatePlaylist];
                } onFailure:nil];

                [[expectFutureValue(storedDeliveryItems) shouldEventually] haveCountOf:11];
            });
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

No branches or pull requests

1 participant