summaryrefslogtreecommitdiff
path: root/test/ios
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-08-19 12:44:13 -0700
committerKonstantin Käfer <mail@kkaefer.com>2015-08-21 09:36:23 -0400
commit6d1c10dc1884712a66e7231cc18ecf1e21414b77 (patch)
treec737ded03ef033c6320f4d3dddaf50db60ca43ff /test/ios
parent5989ff4eb781ca25172807d97bf4828438971bed (diff)
downloadqtlocation-mapboxgl-6d1c10dc1884712a66e7231cc18ecf1e21414b77.tar.gz
Increased timeouts for failing metrics tests
ref #1887
Diffstat (limited to 'test/ios')
-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