Skip to content

Commit 2133b18

Browse files
Trottaddaleax
authored andcommitted
test: add debugging for test-https-foafssl.js
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 <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent dd6bf20 commit 2133b18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/parallel/test-https-foafssl.js

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const server = https.createServer(options, common.mustCall(function(req, res) {
5757
assert.strictEqual(cert.modulus, modulus);
5858
res.writeHead(200, { 'content-type': 'text/plain' });
5959
res.end(body);
60+
console.log('sent response');
6061
}));
6162

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

7172
client.stdout.on('data', function(data) {
73+
console.log('response received');
7274
const message = data.toString();
7375
const contents = message.split(CRLF + CRLF).pop();
7476
assert.strictEqual(body, contents);
7577
server.close();
78+
console.log('server closed');
7679
});
7780

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

0 commit comments

Comments
 (0)