Skip to content

Commit fc3546c

Browse files
authored
Address travis timeout flakes (#2033)
1 parent b9cc615 commit fc3546c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

InAppMessagingDisplay/Example/InAppMessagingDisplay-UITests/InAppMessagingDisplayUITestsBase.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ import Foundation
1919
import XCTest
2020

2121
class InAppMessagingDisplayUITestsBase: XCTestCase {
22-
func waitForElementToAppear(_ element: XCUIElement, _ timeoutInSeconds: TimeInterval = 20) {
22+
func waitForElementToAppear(_ element: XCUIElement, _ timeoutInSeconds: TimeInterval = 60) {
2323
let existsPredicate = NSPredicate(format: "exists == true")
2424
expectation(for: existsPredicate, evaluatedWith: element, handler: nil)
2525
waitForExpectations(timeout: timeoutInSeconds, handler: nil)
2626
}
2727

28-
func waitForElementToDisappear(_ element: XCUIElement, _ timeoutInSeconds: TimeInterval = 20) {
28+
func waitForElementToDisappear(_ element: XCUIElement, _ timeoutInSeconds: TimeInterval = 60) {
2929
let existsPredicate = NSPredicate(format: "exists == false")
3030
expectation(for: existsPredicate, evaluatedWith: element, handler: nil)
3131
waitForExpectations(timeout: timeoutInSeconds, handler: nil)

0 commit comments

Comments
 (0)