Skip to content

Commit

Permalink
Remove promise?.succeed(())
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadoba committed Jan 25, 2023
1 parent 3f8f55f commit efa86b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
metadata: req.requestFramingMetadata
)
self.run(action, context: context)
promise?.succeed(())
}

func read(context: ChannelHandlerContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ class HTTP1ClientChannelHandlerTests: XCTestCase {
// non empty body is important to trigger this bug as we otherwise finish the request in a single flush
request.requestFramingMetadata.body = .fixedSize(1)
request.raiseErrorIfUnimplementedMethodIsCalled = false
try channel.writeOutbound(request)
channel.writeAndFlush(request, promise: nil)
XCTAssertEqual(request.events.map(\.kind), [.willExecuteRequest, .requestHeadSent])
}
}
Expand Down

0 comments on commit efa86b5

Please sign in to comment.