Browse Source

guard testPreviousRPCAttemptsValidValues (#1698)

It relies on `metadata.previousRPCAttempts`, `retryPushback` which are only available on
macOS 13.0 and newer.
Rick Newton-Rogers 2 years ago
parent
commit
c841cbb6ac
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Tests/GRPCCoreTests/Internal/Metadata+GRPCTests.swift

+ 1 - 0
Tests/GRPCCoreTests/Internal/Metadata+GRPCTests.swift

@@ -18,6 +18,7 @@ import XCTest
 
 @testable import GRPCCore
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 final class MetadataGRPCTests: XCTestCase {
   func testPreviousRPCAttemptsValidValues() {
     let testData = [("0", 0), ("1", 1), ("-1", -1)]