summaryrefslogtreecommitdiffstats
path: root/test/test_pair.rb
diff options
context:
space:
mode:
authorakr <akr@ruby-lang.org>2009-02-08 02:01:22 +0000
committerakr <akr@ruby-lang.org>2009-02-08 02:01:22 +0000
commit3bb0c07400595c6eb649bdd72a3898a29aa71e9b (patch)
treea99fe1b8baaccc47c2df655fbce58e1f99641147 /test/test_pair.rb
parent0038f254d6dc5b7d46138d14261b7ac72db21af9 (diff)
downloadruby-openssl-history-3bb0c07400595c6eb649bdd72a3898a29aa71e9b.tar.gz
select before read_nonblock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_pair.rb')
-rw-r--r--test/test_pair.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_pair.rb b/test/test_pair.rb
index ea8fc77..271459f 100644
--- a/test/test_pair.rb
+++ b/test/test_pair.rb
@@ -156,6 +156,7 @@ class OpenSSL::TestPair < Test::Unit::TestCase
}
assert_match(/SSL_ERROR_WANT_READ/, err.message)
s1.write "abc\ndef\n"
+ IO.select([s2])
assert_equal("ab", s2.read_nonblock(2))
assert_equal("c\n", s2.gets)
ret = nil