diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-18 14:40:04 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-07-18 14:40:04 +0000 |
commit | a061fdf407dde2199308a161fcef9ab46e7dcb5a (patch) | |
tree | e6fdadd2f0081d020d0888fba5a280d2b177931b /test/openssl | |
parent | 5f06ad0e20927d221006c879087303641c1cc524 (diff) |
* test/openssl/test_ssl.rb: add workaround for Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_ssl.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index e13ccbfb14..5ca981798c 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -70,7 +70,7 @@ class OpenSSL::TestSSL < Test::Unit::TestCase block.call(server) ensure if server - Process.kill(:KILL, pid) + Process.kill(:KILL, pid) if pid > 0 server.close end end @@ -78,6 +78,10 @@ class OpenSSL::TestSSL < Test::Unit::TestCase def starttls(ssl) ssl.puts("STARTTLS") + + sleep 1 # When this line is eliminated, process on Cygwin blocks + # forever at ssl.connect. But I don't know why it does. + ssl.connect end |