浏览代码

Add another missing availability annotation in tests (#1816)

George Barnett 1 年之前
父节点
当前提交
ebdb4b9329
共有 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)