Browse Source

Add another missing availability annotation in tests (#1816)

George Barnett 1 year ago
parent
commit
160b1f8060
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Tests/GRPCHTTP2CoreTests/Test Utilities/XCTest+Utilities.swift

+ 1 - 0
Tests/GRPCHTTP2CoreTests/Test Utilities/XCTest+Utilities.swift

@@ -38,6 +38,7 @@ func XCTAssertDescription(
   XCTAssertEqual(String(describing: subject), expected, file: file, line: line)
   XCTAssertEqual(String(describing: subject), expected, file: file, line: line)
 }
 }
 
 
+@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
 func XCTUnwrapAsync<T>(_ expression: () async throws -> T?) async throws -> T {
 func XCTUnwrapAsync<T>(_ expression: () async throws -> T?) async throws -> T {
   let value = try await expression()
   let value = try await expression()
   return try XCTUnwrap(value)
   return try XCTUnwrap(value)