Skip to content

Commit

Permalink
test: Adjusts test availability to macOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
NeedleInAJayStack committed Jan 9, 2023
1 parent eae8ca0 commit 0d6c156
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tests/GraphitiTests/HelloWorldTests/HelloWorldAsyncTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<User>()

@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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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<T> {
private var subscribers: [Subscriber<T>]
Expand Down

0 comments on commit 0d6c156

Please sign in to comment.