Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 1191e65

Browse files
joaocgreisorangemocha
authored andcommitted
test: running tls-server-verify clients in parallel
OpenSSL s_client introduces some delay on Windows. With all clients running sequentially, this delay is big enough to break CI. This fix runs the clients in parallel (unless the test includes renegotiation), reducing the total run time. Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: #25368
1 parent 85d670e commit 1191e65

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

test/simple/test-tls-server-verify.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,21 @@ function runTest(testIndex) {
323323
if (tcase.debug) {
324324
console.error('TLS server running on port ' + common.PORT);
325325
} else {
326-
runNextClient(0);
326+
if (tcase.renegotiate) {
327+
runNextClient(0);
328+
} else {
329+
var clientsCompleted = 0;
330+
for (var i = 0; i < tcase.clients.length; i++) {
331+
runClient(tcase.clients[i], function() {
332+
clientsCompleted++;
333+
if (clientsCompleted === tcase.clients.length) {
334+
server.close();
335+
successfulTests++;
336+
runTest(testIndex + 1);
337+
}
338+
});
339+
}
340+
}
327341
}
328342
});
329343
}

0 commit comments

Comments
 (0)