Permalink
Browse files

Put a little delay into test-tls-securepair-client.js

Avoids race. openssl s_server is a terrible program.
  • Loading branch information...
1 parent b9540c2 commit 8e461673c44cb550a7aadc20f0af6453810f1b18 @ry ry committed Jan 11, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 test/simple/test-tls-securepair-client.js
@@ -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;

0 comments on commit 8e46167

Please sign in to comment.