Commit 39dcac73 by Dima Bart

Attempt to solve CI test failures with empty handler blocks.

parent fafcaea8
No related merge requests found
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
#pragma mark - Orders - #pragma mark - Orders -
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10.0 handler:nil]; [self waitForExpectationsWithTimeout:10.0 handler:^(NSError *error) {}];
} }
- (void)testCustomerOrderWithID - (void)testCustomerOrderWithID
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10.0 handler:nil]; [self waitForExpectationsWithTimeout:10.0 handler:^(NSError *error) {}];
} }
#pragma mark - Update - #pragma mark - Update -
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
#pragma mark - Address - #pragma mark - Address -
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
- (void)testAddressCRUD - (void)testAddressCRUD
...@@ -291,7 +291,7 @@ ...@@ -291,7 +291,7 @@
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
- (void)getAddress - (void)getAddress
...@@ -312,7 +312,7 @@ ...@@ -312,7 +312,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
- (void)updateAddress - (void)updateAddress
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
- (void)deleteAddress - (void)deleteAddress
...@@ -365,7 +365,7 @@ ...@@ -365,7 +365,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
#pragma mark - Address - #pragma mark - Address -
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10 handler:nil]; [self waitForExpectationsWithTimeout:10 handler:^(NSError *error) {}];
} }
- (void)testGetProductById - (void)testGetProductById
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
[expectation fulfill]; [expectation fulfill];
}]; }];
[self waitForExpectationsWithTimeout:10.0 handler:nil]; [self waitForExpectationsWithTimeout:10.0 handler:^(NSError *error) {}];
} }
- (void)updateCheckout - (void)updateCheckout
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
[operation start]; [operation start];
[self waitForExpectationsWithTimeout:3.0 handler:nil]; [self waitForExpectationsWithTimeout:3.0 handler:^(NSError *error) {}];
} }
#pragma mark - Data Tests - #pragma mark - Data Tests -
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
}]; }];
[self.queue addOperation:operation]; [self.queue addOperation:operation];
[self waitForExpectationsWithTimeout:3.0 handler:nil]; [self waitForExpectationsWithTimeout:3.0 handler:^(NSError *error) {}];
} }
- (void)testFailedRequest - (void)testFailedRequest
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
}]; }];
[self.queue addOperation:operation]; [self.queue addOperation:operation];
[self waitForExpectationsWithTimeout:3.0 handler:nil]; [self waitForExpectationsWithTimeout:3.0 handler:^(NSError *error) {}];
} }
#pragma mark - Dependency Tests - #pragma mark - Dependency Tests -
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
[self.queue addOperation:operation2]; [self.queue addOperation:operation2];
[self.queue addOperation:operation1]; [self.queue addOperation:operation1];
[self waitForExpectationsWithTimeout:10.0 handler:nil]; [self waitForExpectationsWithTimeout:10.0 handler:^(NSError *error) {}];
XCTAssertEqualObjects(container, @"12"); XCTAssertEqualObjects(container, @"12");
} }
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
[self.queue addOperation:operation2]; [self.queue addOperation:operation2];
[self.queue addOperation:operation1]; [self.queue addOperation:operation1];
[self waitForExpectationsWithTimeout:10.0 handler:nil]; [self waitForExpectationsWithTimeout:10.0 handler:^(NSError *error) {}];
XCTAssertEqualObjects(container, @"1134"); XCTAssertEqualObjects(container, @"1134");
} }
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
}; };
[self.queue addOperation:operation]; [self.queue addOperation:operation];
[self waitForExpectationsWithTimeout:5.0 handler:nil]; [self waitForExpectationsWithTimeout:5.0 handler:^(NSError *error) {}];
} }
- (void)testCancellationBeforeExecution - (void)testCancellationBeforeExecution
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
[self.queue addOperation:operation]; [self.queue addOperation:operation];
[operation cancel]; [operation cancel];
[self waitForExpectationsWithTimeout:3.0 handler:nil]; [self waitForExpectationsWithTimeout:3.0 handler:^(NSError *error) {}];
} }
- (void)testCancellationDuringExecution - (void)testCancellationDuringExecution
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
[operation cancel]; [operation cancel];
}]; }];
[self waitForExpectationsWithTimeout:4.0 handler:nil]; [self waitForExpectationsWithTimeout:4.0 handler:^(NSError *error) {}];
} }
- (void)testCancellationWithoutQueue - (void)testCancellationWithoutQueue
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
[operation cancel]; [operation cancel];
[self createExpectationDelay]; [self createExpectationDelay];
[self waitForExpectationsWithTimeout:4.0 handler:nil]; [self waitForExpectationsWithTimeout:4.0 handler:^(NSError *error) {}];
} }
- (void)testCancellationDuringPolling - (void)testCancellationDuringPolling
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
}]; }];
if (block) { if (block) {
[self waitForExpectationsWithTimeout:delay + 0.1 handler:nil]; [self waitForExpectationsWithTimeout:delay + 0.1 handler:^(NSError *error) {}];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment