Permalink
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 <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information...
fatahn authored and Trott committed Mar 27, 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, options.host, 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.