diff --git a/test/sequential/test-http-writable-true-after-close.js b/test/parallel/test-http-writable-true-after-close.js similarity index 78% rename from test/sequential/test-http-writable-true-after-close.js rename to test/parallel/test-http-writable-true-after-close.js index d0972673fb95e7..a1915dd69c5da8 100644 --- a/test/sequential/test-http-writable-true-after-close.js +++ b/test/parallel/test-http-writable-true-after-close.js @@ -12,16 +12,16 @@ let external; // Proxy server const server = createServer(common.mustCall((req, res) => { - get(`http://127.0.0.1:${internal.address().port}`, common.mustCall((inner) => { - const listener = common.mustCall(() => { - assert.strictEqual(res.writable, true); - }); + const listener = common.mustCall(() => { + assert.strictEqual(res.writable, true); + }); - // on CentOS 5, 'finish' is emitted - res.on('finish', listener); - // everywhere else, 'close' is emitted - res.on('close', listener); + // on CentOS 5, 'finish' is emitted + res.on('finish', listener); + // everywhere else, 'close' is emitted + res.on('close', listener); + get(`http://127.0.0.1:${internal.address().port}`, common.mustCall((inner) => { inner.pipe(res); })); })).listen(0, () => {