Skip to content

Commit

Permalink
Increase test timeout (#1951)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
miasma13 authored Sep 13, 2023
1 parent 15fefd2 commit ef01bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGoTests/AutoconsentMessageProtocolTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ final class AutoconsentMessageProtocolTests: XCTestCase {
},
message: message
)
waitForExpectations(timeout: 5.0)
waitForExpectations(timeout: 15.0)
}

@MainActor
Expand Down
2 changes: 1 addition & 1 deletion IntegrationTests/AutoconsentBackgroundTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ef01bfd

Please sign in to comment.