GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: improve assert message in http timeout test · nodejs/node@e8e014a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-http-client-timeout-option-with-agent.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-http-client-timeout-option-with-agent.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-client-timeout-option-with-agent.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ function doRequest() {
4343
const duration = Date.now() - start;
4444
// The timeout event cannot be precisely timed. It will delay
4545
// some number of milliseconds.
46-
assert.ok(duration >= HTTP_CLIENT_TIMEOUT,
47-
`${duration} < ${HTTP_CLIENT_TIMEOUT}`);
46+
assert.ok(
47+
duration >= HTTP_CLIENT_TIMEOUT,
48+
`duration ${duration}ms less than timeout ${HTTP_CLIENT_TIMEOUT}ms`
49+
);
4850
}));
4951
req.end();
5052

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.