Skip to content

Commit

Permalink
test: improve assert message
Browse files Browse the repository at this point in the history
Use the default assert.strictEqual() message so that unequal values are
shown in the event of an AssertionError.

PR-URL: nodejs#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
q3e authored and Trott committed Apr 4, 2018
1 parent 14310b5 commit 6259712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-http-client-timeout-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.