Put a little delay into test-tls-securepair-client.js
Avoids race. openssl s_server is a terrible program.
This commit is contained in:
parent
b9540c28e9
commit
8e461673c4
@ -49,7 +49,8 @@ server.stdout.on('data', function(s) {
|
||||
switch (state) {
|
||||
case 'WAIT-ACCEPT':
|
||||
if (/ACCEPT/g.test(serverStdoutBuffer)) {
|
||||
startClient();
|
||||
// Give s_server half a second to start up.
|
||||
setTimeout(startClient, 500);
|
||||
state = 'WAIT-HELLO';
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user