summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-04 18:46:16 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-04 18:46:16 +0000
commit8db313151d46b0c296c99968cdc3d5619d215a9c (patch)
tree309f77f525c4b05da7ce15564558d229a177c9f4
parent8745bc676ec06fe0745fc71b5193620e7c7de77a (diff)
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
-rw-r--r--test/openssl/test_pair.rb2
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