Skip to content

Commit

Permalink
Decrease max timeout to a reasonable amount
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuswestin committed Feb 2, 2016
1 parent d1f3522 commit 1405965
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/WebViewJavascriptBridgeTests/BridgeTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static void loadEchoSample(id webView) {
- (void)testInitialization {
[self classSpecificTestInitialization:[WebViewJavascriptBridge class] webView:_uiWebView];
[self classSpecificTestInitialization:[WKWebViewJavascriptBridge class] webView:_wkWebView];
[self waitForExpectationsWithTimeout:10 handler:NULL];
[self waitForExpectationsWithTimeout:3 handler:NULL];
}
- (void)classSpecificTestInitialization:(Class)cls webView:(id)webView {
XCTestExpectation *startup = [self expectationWithDescription:@"Startup completed"];
Expand All @@ -65,7 +65,7 @@ - (void)classSpecificTestInitialization:(Class)cls webView:(id)webView {
- (void)testEchoHandler {
[self classSpecificTestEchoHandler:[WebViewJavascriptBridge class] webView:_uiWebView];
[self classSpecificTestEchoHandler:[WKWebViewJavascriptBridge class] webView:_wkWebView];
[self waitForExpectationsWithTimeout:10 handler:NULL];
[self waitForExpectationsWithTimeout:3 handler:NULL];
}
- (void)classSpecificTestEchoHandler:(Class)cls webView:(id)webView {
WebViewJavascriptBridge *bridge = [self bridgeForCls:cls webView:webView];
Expand All @@ -82,7 +82,7 @@ - (void)classSpecificTestEchoHandler:(Class)cls webView:(id)webView {
- (void)testEchoHandlerAfterSetup {
[self classSpecificTestEchoHandlerAfterSetup:[WebViewJavascriptBridge class] webView:_uiWebView];
[self classSpecificTestEchoHandlerAfterSetup:[WKWebViewJavascriptBridge class] webView:_wkWebView];
[self waitForExpectationsWithTimeout:10 handler:NULL];
[self waitForExpectationsWithTimeout:3 handler:NULL];
}
- (void)classSpecificTestEchoHandlerAfterSetup:(Class)cls webView:(id)webView {
WebViewJavascriptBridge *bridge = [self bridgeForCls:cls webView:webView];
Expand All @@ -100,7 +100,7 @@ - (void)classSpecificTestEchoHandlerAfterSetup:(Class)cls webView:(id)webView {
- (void)testObjectEncoding {
[self classSpecificTestObjectEncoding:[WebViewJavascriptBridge class] webView:_uiWebView];
[self classSpecificTestObjectEncoding:[WKWebViewJavascriptBridge class] webView:_wkWebView];
[self waitForExpectationsWithTimeout:10 handler:NULL];
[self waitForExpectationsWithTimeout:3 handler:NULL];
}
- (void)classSpecificTestObjectEncoding:(Class)cls webView:(id)webView {
WebViewJavascriptBridge *bridge = [self bridgeForCls:cls webView:webView];
Expand Down

0 comments on commit 1405965

Please sign in to comment.