Browse Source

Add missing avaliable annotations to test code (#1720)

Signed-off-by: Si Beaumont <beaumont@apple.com>
Si Beaumont 2 years ago
parent
commit
060ecea96b

+ 1 - 0
Tests/GRPCCoreTests/Call/Client/Internal/ClientRPCExecutorTestSupport/ClientRPCExecutorTestHarness+Transport.swift

@@ -17,6 +17,7 @@ import Atomics
 
 
 @testable import GRPCCore
 @testable import GRPCCore
 
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 extension InProcessServerTransport {
 extension InProcessServerTransport {
   func spawnClientTransport(
   func spawnClientTransport(
     throttle: RetryThrottle = RetryThrottle(maximumTokens: 10, tokenRatio: 0.1)
     throttle: RetryThrottle = RetryThrottle(maximumTokens: 10, tokenRatio: 0.1)

+ 2 - 0
Tests/GRPCCoreTests/Call/Client/Internal/ClientRPCExecutorTests+Hedging.swift

@@ -16,6 +16,7 @@
 import GRPCCore
 import GRPCCore
 import XCTest
 import XCTest
 
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 extension ClientRPCExecutorTests {
 extension ClientRPCExecutorTests {
   func testHedgingWhenAllAttemptsResultInNonFatalCodes() async throws {
   func testHedgingWhenAllAttemptsResultInNonFatalCodes() async throws {
     let harness = ClientRPCExecutorTestHarness(
     let harness = ClientRPCExecutorTestHarness(
@@ -185,6 +186,7 @@ extension ClientRPCExecutorTests {
   }
   }
 }
 }
 
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 extension ClientRPCExecutionConfiguration {
 extension ClientRPCExecutionConfiguration {
   fileprivate static func hedge(
   fileprivate static func hedge(
     maximumAttempts: Int = 5,
     maximumAttempts: Int = 5,

+ 1 - 0
Tests/GRPCCoreTests/Transport/InProcessClientTransportTests.swift

@@ -18,6 +18,7 @@ import XCTest
 
 
 @testable import GRPCCore
 @testable import GRPCCore
 
 
+@available(macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
 final class InProcessClientTransportTests: XCTestCase {
 final class InProcessClientTransportTests: XCTestCase {
   struct FailTest: Error {}
   struct FailTest: Error {}