Merge pull request #1154 from carsonmcdonald/fixtestpostwithparams

Add longer test timeout
This commit is contained in:
Mattt Thompson 2013-07-23 14:13:58 -07:00
commit 75bd257ffe

View file

@ -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;