test: fix test-tls-server-verify.js on Windows CI
The test runs two test cases at a time. This is not relevant to what the test is actually testing. Not sure why doing it that way causes a deadlock on some Windows servers, but running one at a time fixes it. Fixes: https://github.com/nodejs/node/issues/18269 PR-URL: https://github.com/nodejs/node/pull/18382 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
082f9525d9
commit
1ecd2be2e6
@ -327,7 +327,7 @@ function runTest(port, testIndex) {
|
|||||||
} else {
|
} else {
|
||||||
server.close();
|
server.close();
|
||||||
successfulTests++;
|
successfulTests++;
|
||||||
runTest(port, nextTest++);
|
runTest(0, nextTest++);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -345,7 +345,7 @@ function runTest(port, testIndex) {
|
|||||||
if (clientsCompleted === tcase.clients.length) {
|
if (clientsCompleted === tcase.clients.length) {
|
||||||
server.close();
|
server.close();
|
||||||
successfulTests++;
|
successfulTests++;
|
||||||
runTest(port, nextTest++);
|
runTest(0, nextTest++);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -356,7 +356,6 @@ function runTest(port, testIndex) {
|
|||||||
|
|
||||||
let nextTest = 0;
|
let nextTest = 0;
|
||||||
runTest(0, nextTest++);
|
runTest(0, nextTest++);
|
||||||
runTest(0, nextTest++);
|
|
||||||
|
|
||||||
|
|
||||||
process.on('exit', function() {
|
process.on('exit', function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user