Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit ef01bfd

Browse files
authored
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.
1 parent 15fefd2 commit ef01bfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DuckDuckGoTests/AutoconsentMessageProtocolTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ final class AutoconsentMessageProtocolTests: XCTestCase {
133133
},
134134
message: message
135135
)
136-
waitForExpectations(timeout: 5.0)
136+
waitForExpectations(timeout: 15.0)
137137
}
138138

139139
@MainActor

IntegrationTests/AutoconsentBackgroundTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ final class AutoconsentBackgroundTests: XCTestCase {
116116
waitForExpectations(timeout: 4)
117117

118118
let expectation = expectation(description: "Async call")
119-
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
119+
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
120120
webview.evaluateJavaScript("window.getComputedStyle(banner).display === 'none'", in: nil, in: .page,
121121
completionHandler: { result in
122122
switch result {

0 commit comments

Comments
 (0)