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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
q3e authored and targos committed Apr 4, 2018
1 parent 46569d6 commit f379167
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 f379167

Please sign in to comment.