diff --git a/Tests/UnitTests/Misc/XCTestCase+Extensions.swift b/Tests/UnitTests/Misc/XCTestCase+Extensions.swift index 4cb89f8c2c..b33530e595 100644 --- a/Tests/UnitTests/Misc/XCTestCase+Extensions.swift +++ b/Tests/UnitTests/Misc/XCTestCase+Extensions.swift @@ -71,10 +71,11 @@ extension XCTestCase { } /// Similar to `XCTUnrap` but it allows an `async` closure. +@MainActor @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.2, *) func XCTAsyncUnwrap( - _ expression: @autoclosure @Sendable () async throws -> T?, - _ message: @autoclosure @Sendable () -> String = "", + _ expression: @autoclosure () async throws -> T?, + _ message: @autoclosure () -> String = "", file: StaticString = #filePath, line: UInt = #line ) async throws -> T {