Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Avoids race. openssl s_server is a terrible program.
  • Loading branch information...
commit 8e461673c44cb550a7aadc20f0af6453810f1b18 1 parent b9540c2
@ry ry authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  test/simple/test-tls-securepair-client.js
View
3  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;
Please sign in to comment.
Something went wrong with that request. Please try again.