diff --git a/test/parallel/test-http-client-timeout-option-with-agent.js b/test/parallel/test-http-client-timeout-option-with-agent.js index 63f683975dc9d0..26c93ec55bc903 100644 --- a/test/parallel/test-http-client-timeout-option-with-agent.js +++ b/test/parallel/test-http-client-timeout-option-with-agent.js @@ -43,8 +43,10 @@ function doRequest() { const duration = Date.now() - start; // The timeout event cannot be precisely timed. It will delay // some number of milliseconds. - assert.ok(duration >= HTTP_CLIENT_TIMEOUT, - `${duration} < ${HTTP_CLIENT_TIMEOUT}`); + assert.ok( + duration >= HTTP_CLIENT_TIMEOUT, + `duration ${duration}ms less than timeout ${HTTP_CLIENT_TIMEOUT}ms` + ); })); req.end();