Skip to content

Commit

Permalink
Fix build on non-macOS Apple platforms (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjbeaumont authored Dec 18, 2023
1 parent 8bf5a6b commit 6cbe0ed
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Tests/NIOTransportServicesTests/NIOTSBootstrapTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import NIOTransportServices
import NIOConcurrencyHelpers
import Foundation

@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
final class NIOTSBootstrapTests: XCTestCase {
var groupBag: [NIOTSEventLoopGroup]? = nil // protected by `self.lock`
let lock = NIOLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import NIOTransportServices
import Foundation


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
final class ConnectRecordingHandler: ChannelOutboundHandler {
typealias OutboundIn = Any
typealias OutboundOut = Any
Expand Down Expand Up @@ -70,7 +70,7 @@ final class WritabilityChangedHandler: ChannelInboundHandler {
}


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
final class DisableWaitingAfterConnect: ChannelOutboundHandler {
typealias OutboundIn = Any
typealias OutboundOut = Any
Expand All @@ -86,7 +86,7 @@ final class DisableWaitingAfterConnect: ChannelOutboundHandler {
}
}

@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
final class EnableWaitingAfterWaiting: ChannelInboundHandler {
typealias InboundIn = Any
typealias InboundOut = Any
Expand Down Expand Up @@ -137,7 +137,7 @@ final class EventWaiter<Event>: ChannelInboundHandler {
}


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
class NIOTSConnectionChannelTests: XCTestCase {
private var group: NIOTSEventLoopGroup!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ final class ReadRecorder<DataType>: ChannelInboundHandler {
}

// Mimicks the DatagramChannelTest from apple/swift-nio
@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
final class NIOTSDatagramConnectionChannelTests: XCTestCase {
private var group: NIOTSEventLoopGroup!

Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOTransportServicesTests/NIOTSEndToEndTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ extension ByteBufferAllocator {
}
}

@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
class NIOTSEndToEndTests: XCTestCase {
private var group: NIOTSEventLoopGroup!

Expand Down
2 changes: 1 addition & 1 deletion Tests/NIOTransportServicesTests/NIOTSEventLoopTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import NIOConcurrencyHelpers
import NIOTransportServices


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
class NIOTSEventLoopTest: XCTestCase {
func testIsInEventLoopWorks() throws {
let group = NIOTSEventLoopGroup()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import NIOCore
import NIOTransportServices


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
final class BindRecordingHandler: ChannelOutboundHandler {
typealias OutboundIn = Any
typealias OutboundOut = Any
Expand All @@ -44,7 +44,7 @@ final class BindRecordingHandler: ChannelOutboundHandler {
}


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
class NIOTSListenerChannelTests: XCTestCase {
private var group: NIOTSEventLoopGroup!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Network
@testable import NIOTransportServices


@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
class NIOTSSocketOptionTests: XCTestCase {
private var options: NWProtocolTCP.Options!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private extension Channel {
}
}

@available(OSX 10.14, iOS 12.0, tvOS 12.0, *)
@available(macOS 10.14, iOS 12.0, tvOS 12.0, watchOS 6, *)
class NIOTSSocketOptionsOnChannelTests: XCTestCase {
private var group: NIOTSEventLoopGroup!

Expand Down

0 comments on commit 6cbe0ed

Please sign in to comment.