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: fix flaky test-http-client-abort · nodejs/node@a865975

File tree

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

‎test/parallel/test-http-client-abort.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http-client-abort.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var http = require('http');
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const http = require('http');
55

66
var clientAborts = 0;
77

8-
var server = http.Server(function(req, res) {
8+
const server = http.Server(function(req, res) {
99
console.log('Got connection');
1010
res.writeHead(200);
1111
res.write('Working on it...');
@@ -30,8 +30,8 @@ var server = http.Server(function(req, res) {
3030
});
3131

3232
var responses = 0;
33-
var N = 16;
34-
var requests = [];
33+
const N = 8;
34+
const requests = [];
3535

3636
server.listen(common.PORT, function() {
3737
console.log('Server listening.');

0 commit comments

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