diff options
Diffstat (limited to 'test/parallel/test-http-double-content-length.js')
-rw-r--r-- | test/parallel/test-http-double-content-length.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/parallel/test-http-double-content-length.js b/test/parallel/test-http-double-content-length.js index ac70168601..a73cf49854 100644 --- a/test/parallel/test-http-double-content-length.js +++ b/test/parallel/test-http-double-content-length.js @@ -23,8 +23,7 @@ server.listen(0, () => { // Send two content-length header values. headers: {'Content-Length': [1, 2]}}, (res) => { - assert.fail(null, null, 'an error should have occurred'); - server.close(); + common.fail('an error should have occurred'); } ); req.on('error', common.mustCall(() => { |