From 625971271b1b9208cd0da53d55f4e5669df3f129 Mon Sep 17 00:00:00 2001 From: fatahn Date: Tue, 27 Mar 2018 11:21:05 +0300 Subject: [PATCH] test: improve assert message Use the default assert.strictEqual() message so that unequal values are shown in the event of an AssertionError. PR-URL: https://github.com/nodejs/node/pull/19629 Reviewed-By: Rich Trott Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- test/parallel/test-http-client-timeout-agent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-client-timeout-agent.js b/test/parallel/test-http-client-timeout-agent.js index 55397cf0577b86..9a974d4e5221da 100644 --- a/test/parallel/test-http-client-timeout-agent.js +++ b/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); });