Skip to content
Browse files

test: improve assert message

Use the default assert.strictEqual() message so that unequal values are
shown in the event of an AssertionError.

PR-URL: #19629
Reviewed-By: Rich Trott <>
Reviewed-By: James M Snell <>
Reviewed-By: Trivikram Kamat <>
  • Loading branch information
q3e authored and Trott committed Apr 4, 2018
1 parent 14310b5 commit 625971271b1b9208cd0da53d55f4e5669df3f129
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-http-client-timeout-agent.js
@@ -89,6 +89,6 @@ server.listen(0,, function() {

process.on('exit', function() {
console.error(`done=${requests_done} sent=${requests_sent}`);
assert.strictEqual(requests_done, requests_sent,
'timeout on http request called too much');
// check that timeout on http request was not called too much
assert.strictEqual(requests_done, requests_sent);

0 comments on commit 6259712

Please sign in to comment.