diff --git a/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift b/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift index 68604ef0f4f..7d365c36209 100644 --- a/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift +++ b/Tests/NIOPosixTests/AsyncChannelBootstrapTests.swift @@ -25,7 +25,8 @@ private final class IPHeaderRemoverHandler: ChannelInboundHandler { func channelRead(context: ChannelHandlerContext, data: NIOAny) { var data = Self.unwrapInboundIn(data) - assert(data.data.readIPv4Header() != nil) + let header = data.data.readIPv4Header() + assert(header != nil) context.fireChannelRead(Self.wrapInboundOut(data)) } }