Skip to content

Commit 2f0cfe1

Browse files
committed
Fix more warnings
1 parent 0cdc406 commit 2f0cfe1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/NIOSOCKSTests/SocksClientHandler+Tests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class SocksClientHandlerTests: XCTestCase {
235235
self.assertOutputBuffer([])
236236

237237
// add the handler, there should be outbound data immediately
238-
XCTAssertNoThrow(self.channel.pipeline.addHandler(handler))
238+
XCTAssertNoThrow(try self.channel.pipeline.syncOperations.addHandler(handler))
239239
self.assertOutputBuffer([0x05, 0x01, 0x00])
240240
}
241241

@@ -263,7 +263,7 @@ class SocksClientHandlerTests: XCTestCase {
263263
let establishPromise = self.channel.eventLoop.makePromise(of: Void.self)
264264
let removalPromise = self.channel.eventLoop.makePromise(of: Void.self)
265265
establishPromise.futureResult.whenSuccess { _ in
266-
self.channel.pipeline.removeHandler(self.handler).cascade(to: removalPromise)
266+
self.channel.pipeline.syncOperations.removeHandler(self.handler).cascade(to: removalPromise)
267267
}
268268

269269
XCTAssertNoThrow(
@@ -309,7 +309,7 @@ class SocksClientHandlerTests: XCTestCase {
309309

310310
// we try to remove the handler before the connection is established.
311311
let removalPromise = self.channel.eventLoop.makePromise(of: Void.self)
312-
self.channel.pipeline.removeHandler(self.handler, promise: removalPromise)
312+
self.channel.pipeline.syncOperations.removeHandler(self.handler, promise: removalPromise)
313313

314314
// establishes the connection
315315
self.writeInbound([0x05, 0x00, 0x00, 0x01, 192, 168, 1, 1, 0x00, 0x50])

0 commit comments

Comments
 (0)