From 0d6c15694587f108c3c0eac2401b218a5354c50f Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Sun, 8 Jan 2023 17:08:04 -0700 Subject: [PATCH] test: Adjusts test availability to macOS 12 --- .../HelloWorldTests/HelloWorldAsyncTests.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/GraphitiTests/HelloWorldTests/HelloWorldAsyncTests.swift b/Tests/GraphitiTests/HelloWorldTests/HelloWorldAsyncTests.swift index 07de4e13..780728e6 100644 --- a/Tests/GraphitiTests/HelloWorldTests/HelloWorldAsyncTests.swift +++ b/Tests/GraphitiTests/HelloWorldTests/HelloWorldAsyncTests.swift @@ -5,10 +5,10 @@ import XCTest #if compiler(>=5.5) && canImport(_Concurrency) - @available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *) + @available(macOS 12, iOS 15, watchOS 8, tvOS 15, *) let pubsub = SimplePubSub() - @available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *) + @available(macOS 12, iOS 15, watchOS 8, tvOS 15, *) extension HelloResolver { func asyncHello( context: HelloContext, @@ -41,7 +41,7 @@ import XCTest } } - @available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *) + @available(macOS 12, iOS 15, watchOS 8, tvOS 15, *) // Same as the HelloAPI, except with an async query and a few subscription fields struct HelloAsyncAPI: API { typealias ContextType = HelloContext @@ -122,7 +122,7 @@ import XCTest } } - @available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *) + @available(macOS 12, iOS 15, watchOS 8, tvOS 15, *) class HelloWorldAsyncTests: XCTestCase { private let api = HelloAsyncAPI() private var group = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount) @@ -320,7 +320,7 @@ import XCTest } } - @available(macOS 10.15, iOS 15, watchOS 8, tvOS 15, *) + @available(macOS 12, iOS 15, watchOS 8, tvOS 15, *) /// A very simple publish/subscriber used for testing class SimplePubSub { private var subscribers: [Subscriber]