diff --git a/Tests/AFHTTPClientTests.m b/Tests/AFHTTPClientTests.m index 36ce7c4..d7188b2 100644 --- a/Tests/AFHTTPClientTests.m +++ b/Tests/AFHTTPClientTests.m @@ -257,13 +257,15 @@ } - (void)testPostWithParameters { + [Expecta setAsynchronousTestTimeout:5.0]; + __block id blockResponseObject = nil; [self.client postPath:@"/post" parameters:@{ @"key": @"value" } success:^(AFHTTPRequestOperation *operation, id responseObject) { blockResponseObject = responseObject; } failure:nil]; expect([self.client.operationQueue operationCount]).will.equal(0); - expect(blockResponseObject).notTo.beNil(); + expect(blockResponseObject).willNot.beNil(); expect(blockResponseObject).to.beKindOf([NSData class]); NSError *error = nil;