From 0fa02246238e97f9d7c41da83dc040df0b7939ff Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Fri, 15 Dec 2017 12:29:28 +0000 Subject: [PATCH] Configure this pipeline properly --- Tests/NIOHTTP1Tests/HTTPResponseCompressorTest.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tests/NIOHTTP1Tests/HTTPResponseCompressorTest.swift b/Tests/NIOHTTP1Tests/HTTPResponseCompressorTest.swift index 3edcfd020..20810c384 100644 --- a/Tests/NIOHTTP1Tests/HTTPResponseCompressorTest.swift +++ b/Tests/NIOHTTP1Tests/HTTPResponseCompressorTest.swift @@ -134,8 +134,7 @@ class HTTPResponseCompressorTest: XCTestCase { private func clientParsingChannel() -> EmbeddedChannel { let channel = EmbeddedChannel() - try! channel.pipeline.add(handler: HTTPRequestEncoder()).wait() - try! channel.pipeline.add(handler: HTTPResponseDecoder()).wait() + try! channel.pipeline.addHTTPClientHandlers().wait() return channel }