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: refactor test-tls-securepair-fiftharg · nodejs/node@b3e625d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-tls-securepair-fiftharg.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-tls-securepair-fiftharg.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-securepair-fiftharg.js
+2-7Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ const sslcontext = tls.createSecureContext({
1010
key: fixtures.readSync('test_key.pem')
1111
});
1212

13-
let catchedServername;
1413
const pair = tls.createSecurePair(sslcontext, true, false, false, {
15-
SNICallback: common.mustCall(function(servername, cb) {
16-
catchedServername = servername;
14+
SNICallback: common.mustCall((servername, cb) => {
15+
assert.strictEqual(servername, 'www.google.com');
1716
})
1817
});
1918

2019
// captured traffic from browser's request to https://www.google.com
2120
const sslHello = fixtures.readSync('google_ssl_hello.bin');
2221

2322
pair.encrypted.write(sslHello);
24-
25-
process.on('exit', function() {
26-
assert.strictEqual('www.google.com', catchedServername);
27-
});

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.