소스 검색

Add another missing availability annotation in tests (#1816)

George Barnett 1 년 전
부모
커밋
160b1f8060
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)
 }
 
+@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
 func XCTUnwrapAsync<T>(_ expression: () async throws -> T?) async throws -> T {
   let value = try await expression()
   return try XCTUnwrap(value)