Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelrios authored and nbhasin2 committed Sep 12, 2022
1 parent f0337ba commit ded1e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Wait.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WaitCondition {
let existsPredicate = NSPredicate(format: "exists == true")

// This is a function for waiting for a condition of an object to come true.
func waitOrTimeout(_ predicate: NSPredicate = existsPredicate, object: Any, timeout: TimeInterval = 5, timeoutHandler: () -> ()) {
func waitOrTimeout(_ predicate: NSPredicate = existsPredicate, object: Any, timeout: TimeInterval = 15, timeoutHandler: () -> ()) {
let expectation = XCTNSPredicateExpectation(predicate: predicate, object: object)
let result = XCTWaiter().wait(for: [expectation], timeout: timeout)
if result != .completed {
Expand Down

0 comments on commit ded1e15

Please sign in to comment.