From ef01bfd301d6c7d2f1e3e3edac2c941d5afc5cd1 Mon Sep 17 00:00:00 2001 From: Michal Smaga Date: Wed, 13 Sep 2023 20:02:31 +0200 Subject: [PATCH] Increase test timeout (#1951) Task/Issue URL: https://app.asana.com/0/1205237866452338/1205348294602039/f Description: Increase test timeout for one of the autoconsent tests that may be lagging due to depending on webview script execution on the simulator in the cloud. --- DuckDuckGoTests/AutoconsentMessageProtocolTests.swift | 2 +- IntegrationTests/AutoconsentBackgroundTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGoTests/AutoconsentMessageProtocolTests.swift b/DuckDuckGoTests/AutoconsentMessageProtocolTests.swift index 5c1bcce02e..aae48f81e3 100644 --- a/DuckDuckGoTests/AutoconsentMessageProtocolTests.swift +++ b/DuckDuckGoTests/AutoconsentMessageProtocolTests.swift @@ -133,7 +133,7 @@ final class AutoconsentMessageProtocolTests: XCTestCase { }, message: message ) - waitForExpectations(timeout: 5.0) + waitForExpectations(timeout: 15.0) } @MainActor diff --git a/IntegrationTests/AutoconsentBackgroundTests.swift b/IntegrationTests/AutoconsentBackgroundTests.swift index 93c62c4c23..639a7f37b4 100644 --- a/IntegrationTests/AutoconsentBackgroundTests.swift +++ b/IntegrationTests/AutoconsentBackgroundTests.swift @@ -116,7 +116,7 @@ final class AutoconsentBackgroundTests: XCTestCase { waitForExpectations(timeout: 4) let expectation = expectation(description: "Async call") - DispatchQueue.main.asyncAfter(deadline: .now() + 1) { + DispatchQueue.main.asyncAfter(deadline: .now() + 2) { webview.evaluateJavaScript("window.getComputedStyle(banner).display === 'none'", in: nil, in: .page, completionHandler: { result in switch result {