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: validate no debug info for http2 · nodejs/node@d168cde

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-http2-clean-output.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-http2-clean-output.js‎

Copy file name to clipboard
+40Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
'use strict';
2+
3+
const {
4+
hasCrypto,
5+
mustCall,
6+
skip
7+
} = require('../common');
8+
if (!hasCrypto)
9+
skip('missing crypto');
10+
11+
const {
12+
strictEqual
13+
} = require('assert');
14+
const {
15+
createServer,
16+
connect
17+
} = require('http2');
18+
const {
19+
spawnSync
20+
} = require('child_process');
21+
22+
// Validate that there is no unexpected output when
23+
// using http2
24+
if (process.argv[2] !== 'child') {
25+
const {
26+
stdout, stderr, status
27+
} = spawnSync(process.execPath, [__filename, 'child'], { encoding: 'utf8' });
28+
strictEqual(stderr, '');
29+
strictEqual(stdout, '');
30+
strictEqual(status, 0);
31+
} else {
32+
const server = createServer();
33+
server.listen(0, mustCall(() => {
34+
const client = connect(`http://localhost:${server.address().port}`);
35+
client.on('connect', mustCall(() => {
36+
client.close();
37+
server.close();
38+
}));
39+
}));
40+
}

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.