summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ios/MetricsTests.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ios/MetricsTests.m b/test/ios/MetricsTests.m
index 7c71ee6739..ea72db9402 100644
--- a/test/ios/MetricsTests.m
+++ b/test/ios/MetricsTests.m
@@ -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