Strict concurrency for NIOTLSTests (#3207)

Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
George BarnettandCory Benfield authored and GitHub committed 2025-04-16 11:12:57 +01:00
1 parent 27a1897914
commit 81375efead
3 files changed
+8 -7

No files matched your search

+2 -1
View File
@@ -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)