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: #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 BethGriggs committed Dec 4, 2018
1 parent 086570e commit 970164f
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 @@ -91,6 +91,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 970164f

Please sign in to comment.