Skip to content

Commit 0cc2adb

Browse files
committed
Remove promise?.succeed(())
1 parent 3f8f55f commit 0cc2adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/AsyncHTTPClientTests/HTTP1ClientChannelHandlerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class HTTP1ClientChannelHandlerTests: XCTestCase {
554554
// non empty body is important to trigger this bug as we otherwise finish the request in a single flush
555555
request.requestFramingMetadata.body = .fixedSize(1)
556556
request.raiseErrorIfUnimplementedMethodIsCalled = false
557-
try channel.writeOutbound(request)
557+
channel.writeAndFlush(request, promise: nil)
558558
XCTAssertEqual(request.events.map(\.kind), [.willExecuteRequest, .requestHeadSent])
559559
}
560560
}

0 commit comments

Comments
 (0)