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: adjust test-tls-junk-server for OpenSSL32 · nodejs/node@b097d85

File tree

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

‎test/parallel/test-tls-junk-server.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-tls-junk-server.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ server.listen(0, function() {
2020
const req = https.request({ port: this.address().port });
2121
req.end();
2222

23+
let expectedErrorMessage = new RegExp('wrong version number');
24+
if (common.hasOpenSSL(3, 2)) {
25+
expectedErrorMessage = new RegExp('packet length too long');
26+
}
2327
req.once('error', common.mustCall(function(err) {
24-
assert(/wrong version number/.test(err.message));
28+
assert(expectedErrorMessage.test(err.message));
2529
server.close();
2630
}));
2731
});

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.