File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,8 @@ let package = Package(
511
511
" NIOTLS " ,
512
512
" NIOFoundationCompat " ,
513
513
" NIOTestUtils " ,
514
- ]
514
+ ] ,
515
+ swiftSettings: strictConcurrencySettings
515
516
) ,
516
517
. testTarget(
517
518
name: " NIOWebSocketTests " ,
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ class ApplicationProtocolNegotiationHandlerTests: XCTestCase {
197
197
let readCompleteHandler = ReadCompletedHandler ( )
198
198
199
199
try channel. pipeline. syncOperations. addHandler ( handler)
200
- try channel. pipeline. addHandler ( readCompleteHandler) . wait ( )
200
+ try channel. pipeline. syncOperations . addHandler ( readCompleteHandler)
201
201
202
202
// Fire in the event.
203
203
channel. pipeline. fireUserInboundEventTriggered ( negotiatedEvent)
@@ -224,7 +224,7 @@ class ApplicationProtocolNegotiationHandlerTests: XCTestCase {
224
224
let readCompleteHandler = ReadCompletedHandler ( )
225
225
226
226
try channel. pipeline. syncOperations. addHandler ( handler)
227
- try channel. pipeline. addHandler ( readCompleteHandler) . wait ( )
227
+ try channel. pipeline. syncOperations . addHandler ( readCompleteHandler)
228
228
229
229
// Fire in the event.
230
230
channel. pipeline. fireUserInboundEventTriggered ( negotiatedEvent)
@@ -254,8 +254,8 @@ class ApplicationProtocolNegotiationHandlerTests: XCTestCase {
254
254
let readCompleteHandler = ReadCompletedHandler ( )
255
255
256
256
try channel. pipeline. syncOperations. addHandler ( handler)
257
- try channel. pipeline. addHandler ( DuplicatingReadHandler ( embeddedChannel: channel) ) . wait ( )
258
- try channel. pipeline. addHandler ( readCompleteHandler) . wait ( )
257
+ try channel. pipeline. syncOperations . addHandler ( DuplicatingReadHandler ( embeddedChannel: channel) )
258
+ try channel. pipeline. syncOperations . addHandler ( readCompleteHandler)
259
259
260
260
// Fire in the event.
261
261
channel. pipeline. fireUserInboundEventTriggered ( negotiatedEvent)
Original file line number Diff line number Diff line change @@ -198,8 +198,8 @@ final class NIOTypedApplicationProtocolNegotiationHandlerTests: XCTestCase {
198
198
let eventCounterHandler = EventCounterHandler ( )
199
199
200
200
try channel. pipeline. syncOperations. addHandler ( handler)
201
- try channel. pipeline. addHandler ( DuplicatingReadHandler ( embeddedChannel: channel) ) . wait ( )
202
- try channel. pipeline. addHandler ( eventCounterHandler) . wait ( )
201
+ try channel. pipeline. syncOperations . addHandler ( DuplicatingReadHandler ( embeddedChannel: channel) )
202
+ try channel. pipeline. syncOperations . addHandler ( eventCounterHandler)
203
203
204
204
// Fire in the event.
205
205
channel. pipeline. fireUserInboundEventTriggered ( negotiatedEvent)
You can’t perform that action at this time.
0 commit comments