diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 18:46:16 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-04 18:46:16 +0000 |
commit | 8db313151d46b0c296c99968cdc3d5619d215a9c (patch) | |
tree | 309f77f525c4b05da7ce15564558d229a177c9f4 /test/openssl | |
parent | 8745bc676ec06fe0745fc71b5193620e7c7de77a (diff) | |
download | ruby-8db313151d46b0c296c99968cdc3d5619d215a9c.tar.gz |
wait until the shutdowning message reaches to the server
see #8831
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_pair.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb index 0087ef3078..933f61292c 100644 --- a/test/openssl/test_pair.rb +++ b/test/openssl/test_pair.rb @@ -157,6 +157,7 @@ class OpenSSL::TestPair < Test::Unit::TestCase assert_nothing_raised("[ruby-core:20298]") { ret = s2.read_nonblock(10) } assert_equal("def\n", ret) s1.close + sleep 0.1 assert_raise(EOFError) { s2.read_nonblock(10) } } end @@ -172,6 +173,7 @@ class OpenSSL::TestPair < Test::Unit::TestCase assert_nothing_raised("[ruby-core:20298]") { ret = s2.read_nonblock(10, exception: false) } assert_equal("def\n", ret) s1.close + sleep 0.1 assert_equal(nil, s2.read_nonblock(10, exception: false)) } end |