From 8db313151d46b0c296c99968cdc3d5619d215a9c Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 4 Sep 2013 18:46:16 +0000 Subject: 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 --- test/openssl/test_pair.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3