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: remove undefined function · nodejs/node@038e526

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/sequential
    • test-http-server-consumed-timeout.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/sequential/test-http-server-consumed-timeout.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-http-server-consumed-timeout.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
'use strict';
22

33
const common = require('../common');
4+
5+
const assert = require('assert');
46
const http = require('http');
57

68
let time = Date.now();
@@ -16,7 +18,7 @@ const server = http.createServer((req, res) => {
1618
req.setTimeout(TIMEOUT, () => {
1719
if (!intervalWasInvoked)
1820
return common.skip('interval was not invoked quickly enough for test');
19-
common.fail('Request timeout should not fire');
21+
assert.fail('Request timeout should not fire');
2022
});
2123

2224
req.resume();

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.