From 6d1c10dc1884712a66e7231cc18ecf1e21414b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Wed, 19 Aug 2015 12:44:13 -0700 Subject: Increased timeouts for failing metrics tests ref #1887 --- test/ios/MetricsTests.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/ios') 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 -- cgit v1.2.1