From 087c84011c47e281ab5ace5df09d673c7f37c5a3 Mon Sep 17 00:00:00 2001 From: Andreas Bauer Date: Thu, 15 Aug 2024 15:27:30 +0200 Subject: [PATCH] Slightly increase the default timeout --- Sources/XCTRuntimeAssertions/XCTRuntimePrecondition.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/XCTRuntimeAssertions/XCTRuntimePrecondition.swift b/Sources/XCTRuntimeAssertions/XCTRuntimePrecondition.swift index 3bad9a2..a402290 100644 --- a/Sources/XCTRuntimeAssertions/XCTRuntimePrecondition.swift +++ b/Sources/XCTRuntimeAssertions/XCTRuntimePrecondition.swift @@ -27,7 +27,7 @@ import Foundation /// - Throws: Throws an `XCTFail` error if the expression does not trigger a runtime assertion with the parameters defined above. public func XCTRuntimePrecondition( validateRuntimeAssertion: ((String) -> Void)? = nil, - timeout: TimeInterval = 0.01, + timeout: TimeInterval = 1, _ message: @autoclosure () -> String = "", file: StaticString = #filePath, line: UInt = #line, @@ -80,7 +80,7 @@ public func XCTRuntimePrecondition( /// - Throws: Throws an `XCTFail` error if the expression does not trigger a runtime assertion with the parameters defined above. public func XCTRuntimePrecondition( validateRuntimeAssertion: ((String) -> Void)? = nil, - timeout: TimeInterval = 0.01, + timeout: TimeInterval = 1, _ message: @autoclosure () -> String = "", file: StaticString = #filePath, line: UInt = #line,