diff options
Diffstat (limited to 'test/parallel/test-http-server-unconsume-consume.js')
-rw-r--r-- | test/parallel/test-http-server-unconsume-consume.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/parallel/test-http-server-unconsume-consume.js b/test/parallel/test-http-server-unconsume-consume.js index 77baff19fe..b980a9ec77 100644 --- a/test/parallel/test-http-server-unconsume-consume.js +++ b/test/parallel/test-http-server-unconsume-consume.js @@ -2,10 +2,7 @@ const common = require('../common'); const http = require('http'); -const testServer = http.createServer((req, res) => { - common.fail('Should not be called'); - res.end(); -}); +const testServer = http.createServer(common.mustNotCall()); testServer.on('connect', common.mustCall((req, socket, head) => { socket.write('HTTP/1.1 200 Connection Established' + '\r\n' + 'Proxy-agent: Node-Proxy' + '\r\n' + |