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: make test-http2-client-jsstream-destroy.js reliable · nodejs/node@402e29a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-http2-client-jsstream-destroy.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-http2-client-jsstream-destroy.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-client-jsstream-destroy.js
+7-4Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ server.listen(0, common.mustCall(function() {
4646
});
4747
const req = client.request();
4848

49-
setTimeout(() => socket.destroy(), common.platformTimeout(100));
50-
setTimeout(() => client.close(), common.platformTimeout(200));
51-
setTimeout(() => server.close(), common.platformTimeout(300));
49+
server.on('request', () => {
50+
socket.destroy();
51+
});
5252

53-
req.on('close', common.mustCall(() => { }));
53+
req.on('close', common.mustCall(() => {
54+
client.close();
55+
server.close();
56+
}));
5457
});
5558
}));

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.