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

Commit

Permalink
Put a little delay into test-tls-securepair-client.js
Browse files Browse the repository at this point in the history
Avoids race. openssl s_server is a terrible program.
  • Loading branch information
ry committed Jan 11, 2011
1 parent b9540c2 commit 8e46167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/simple/test-tls-securepair-client.js
Expand Up @@ -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;
Expand Down

0 comments on commit 8e46167

Please sign in to comment.