Skip to content

Commit

Permalink
test: add debugging for test-https-foafssl.js
Browse files Browse the repository at this point in the history
The test is timing out once in a very long while on Windows CI. It is
unclear where the test gets stuck, so add more debugging statements to
try to locate it.

Refs: #24397

PR-URL: #34603
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and addaleax committed Aug 8, 2020
1 parent dd6bf20 commit 2133b18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/parallel/test-https-foafssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const server = https.createServer(options, common.mustCall(function(req, res) {
assert.strictEqual(cert.modulus, modulus);
res.writeHead(200, { 'content-type': 'text/plain' });
res.end(body);
console.log('sent response');
}));

server.listen(0, function() {
Expand All @@ -69,10 +70,12 @@ server.listen(0, function() {
const client = spawn(common.opensslCli, args);

client.stdout.on('data', function(data) {
console.log('response received');
const message = data.toString();
const contents = message.split(CRLF + CRLF).pop();
assert.strictEqual(body, contents);
server.close();
console.log('server closed');
});

client.stdin.write('GET /\n\n');
Expand Down

0 comments on commit 2133b18

Please sign in to comment.