@@ -125,7 +125,7 @@ class HTTPDecoderLengthTest: XCTestCase {
125
125
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( HTTPResponseDecoder ( ) ) ) )
126
126
127
127
let handler = ChannelInactiveHandler ( eofMechanism)
128
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
128
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
129
129
130
130
// Prime the decoder with a GET and consume it.
131
131
XCTAssertTrue (
@@ -197,7 +197,7 @@ class HTTPDecoderLengthTest: XCTestCase {
197
197
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( decoder) ) )
198
198
199
199
let handler = MessageEndHandler < HTTPResponseHead , ByteBuffer > ( )
200
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
200
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
201
201
202
202
// Prime the decoder with a request and consume it.
203
203
XCTAssertTrue (
@@ -351,7 +351,7 @@ class HTTPDecoderLengthTest: XCTestCase {
351
351
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( HTTPRequestDecoder ( ) ) ) )
352
352
353
353
let handler = MessageEndHandler < HTTPRequestHead , ByteBuffer > ( )
354
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
354
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
355
355
356
356
// Send a GET with the appropriate Transfer Encoding header.
357
357
XCTAssertThrowsError (
@@ -369,7 +369,7 @@ class HTTPDecoderLengthTest: XCTestCase {
369
369
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( HTTPRequestDecoder ( ) ) ) )
370
370
371
371
let handler = MessageEndHandler < HTTPRequestHead , ByteBuffer > ( )
372
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
372
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
373
373
374
374
// Send a GET with the appropriate Transfer Encoding header.
375
375
XCTAssertNoThrow (
@@ -402,7 +402,7 @@ class HTTPDecoderLengthTest: XCTestCase {
402
402
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( HTTPResponseDecoder ( ) ) ) )
403
403
404
404
let handler = MessageEndHandler < HTTPResponseHead , ByteBuffer > ( )
405
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
405
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
406
406
407
407
// Prime the decoder with a request and consume it.
408
408
XCTAssertTrue (
@@ -458,7 +458,7 @@ class HTTPDecoderLengthTest: XCTestCase {
458
458
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( HTTPResponseDecoder ( ) ) ) )
459
459
460
460
let handler = MessageEndHandler < HTTPResponseHead , ByteBuffer > ( )
461
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
461
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
462
462
463
463
// Prime the decoder with a request and consume it.
464
464
XCTAssertTrue (
@@ -665,7 +665,7 @@ class HTTPDecoderLengthTest: XCTestCase {
665
665
XCTAssertNoThrow ( try channel. pipeline. syncOperations. addHandler ( ByteToMessageHandler ( HTTPRequestDecoder ( ) ) ) )
666
666
667
667
let handler = MessageEndHandler < HTTPRequestHead , ByteBuffer > ( )
668
- XCTAssertNoThrow ( try channel. pipeline. addHandler ( handler) . wait ( ) )
668
+ XCTAssertNoThrow ( try channel. pipeline. syncOperations . addHandler ( handler) )
669
669
670
670
// Send a POST without a length field of any kind. This should be a zero-length request,
671
671
// so .end should come immediately.
0 commit comments