Skip to content

Commit f379167

Browse files
q3etargos
authored andcommitted
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 46569d6 commit f379167

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-client-timeout-agent.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ server.listen(0, options.host, function() {
9191

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

0 commit comments

Comments
 (0)