Increased timeouts for failing metrics tests

ref #1887
This commit is contained in:
Minh Nguyễn
2015-08-19 12:44:13 -07:00
committed by Konstantin Käfer
parent 5989ff4eb7
commit 6d1c10dc18

View File

@@ -102,7 +102,7 @@ const NSTimeInterval MGLFlushInterval = 60;
[self pushFakeEvent];
[self waitForExpectationsWithTimeout:1.0 handler:nil];
[self waitForExpectationsWithTimeout:2.0 handler:nil];
}
- (void)testTimerDestroyedAfterFlush {
@@ -138,12 +138,12 @@ const NSTimeInterval MGLFlushInterval = 60;
[[MGLMapboxEvents sharedManager] flush];
[self waitForExpectationsWithTimeout:1.0 handler:nil];
[self waitForExpectationsWithTimeout:2.0 handler:nil];
id eventsMock = [OCMockObject partialMockForObject:[MGLMapboxEvents sharedManager]];
[[[eventsMock expect] andForwardToRealObject] startTimer];
[self pushFakeEvent];
[eventsMock verifyWithDelay:0.1];
[eventsMock verifyWithDelay:0.5];
XCTAssertEqual([[[MGLMapboxEvents sharedManager] eventQueue] count], 1);
XCTAssertNotNil([[MGLMapboxEvents sharedManager] timer]);
@@ -228,7 +228,7 @@ const NSTimeInterval MGLFlushInterval = 60;
[self pushFakeEvent];
[self waitForExpectationsWithTimeout:1.0 handler:nil];
[self waitForExpectationsWithTimeout:2.0 handler:nil];
}
- (void)testOptOutUpfrontDisablesMetrics {
@@ -266,7 +266,7 @@ const NSTimeInterval MGLFlushInterval = 60;
[[MGLMapboxEvents sharedManager] flush];
[tester waitForTimeInterval:1.0];
[tester waitForTimeInterval:2.0];
}
@end