mirror of
https://github.com/apple/swift-nio
synced 2026-11-22 04:30:41 +00:00
Strict concurrency for NIOTLSTests (#3207)
Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
1 parent
27a1897914
commit
81375efead
3 files changed
+8
-7
No files matched your search
+2
-1
@@ -511,7 +511,8 @@ let package = Package(
|
||||
"NIOTLS",
|
||||
"NIOFoundationCompat",
|
||||
"NIOTestUtils",
|
||||
]
|
||||
],
|
||||
swiftSettings: strictConcurrencySettings
|
||||
),
|
||||
.testTarget(
|
||||
name: "NIOWebSocketTests",
|
||||
|
||||
@@ -197,7 +197,7 @@ class ApplicationProtocolNegotiationHandlerTests: XCTestCase {
|
||||
let readCompleteHandler = ReadCompletedHandler()
|
||||
|
||||
try channel.pipeline.syncOperations.addHandler(handler)
|
||||
try channel.pipeline.addHandler(readCompleteHandler).wait()
|
||||
try channel.pipeline.syncOperations.addHandler(readCompleteHandler)
|
||||
|
||||
// Fire in the event.
|
||||
channel.pipeline.fireUserInboundEventTriggered(negotiatedEvent)
|
||||
@@ -224,7 +224,7 @@ class ApplicationProtocolNegotiationHandlerTests: XCTestCase {
|
||||
let readCompleteHandler = ReadCompletedHandler()
|
||||
|
||||
try channel.pipeline.syncOperations.addHandler(handler)
|
||||
try channel.pipeline.addHandler(readCompleteHandler).wait()
|
||||
try channel.pipeline.syncOperations.addHandler(readCompleteHandler)
|
||||
|
||||
// Fire in the event.
|
||||
channel.pipeline.fireUserInboundEventTriggered(negotiatedEvent)
|
||||
@@ -254,8 +254,8 @@ class ApplicationProtocolNegotiationHandlerTests: XCTestCase {
|
||||
let readCompleteHandler = ReadCompletedHandler()
|
||||
|
||||
try channel.pipeline.syncOperations.addHandler(handler)
|
||||
try channel.pipeline.addHandler(DuplicatingReadHandler(embeddedChannel: channel)).wait()
|
||||
try channel.pipeline.addHandler(readCompleteHandler).wait()
|
||||
try channel.pipeline.syncOperations.addHandler(DuplicatingReadHandler(embeddedChannel: channel))
|
||||
try channel.pipeline.syncOperations.addHandler(readCompleteHandler)
|
||||
|
||||
// Fire in the event.
|
||||
channel.pipeline.fireUserInboundEventTriggered(negotiatedEvent)
|
||||
|
||||
@@ -198,8 +198,8 @@ final class NIOTypedApplicationProtocolNegotiationHandlerTests: XCTestCase {
|
||||
let eventCounterHandler = EventCounterHandler()
|
||||
|
||||
try channel.pipeline.syncOperations.addHandler(handler)
|
||||
try channel.pipeline.addHandler(DuplicatingReadHandler(embeddedChannel: channel)).wait()
|
||||
try channel.pipeline.addHandler(eventCounterHandler).wait()
|
||||
try channel.pipeline.syncOperations.addHandler(DuplicatingReadHandler(embeddedChannel: channel))
|
||||
try channel.pipeline.syncOperations.addHandler(eventCounterHandler)
|
||||
|
||||
// Fire in the event.
|
||||
channel.pipeline.fireUserInboundEventTriggered(negotiatedEvent)
|
||||
|
||||
Reference in new issue
Block a user