summaryrefslogtreecommitdiff
path: root/test/socket/test_nonblock.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-04 12:15:01 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-04 12:15:01 +0000
commit920f92de9f222abcd1141ebf3fbcf1281aa83685 (patch)
tree1f5af477e779523cc2055b07ca6401de2f8a9d52 /test/socket/test_nonblock.rb
parentbcb798e4e467966524dcd66df108b998a84a362b (diff)
fix tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r--test/socket/test_nonblock.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index 5989a8f23f..c861120912 100644
--- a/test/socket/test_nonblock.rb
+++ b/test/socket/test_nonblock.rb
@@ -88,9 +88,9 @@ class TestNonblockSocket < Test::Unit::TestCase
IO.select [c]
mesg, unix_addr = c.recvfrom_nonblock(100)
assert_equal("aaa", mesg)
- if unix_addr != nil # connection-oriented socket may not return the peer address.
- assert_equal(2, unix_addr.length)
- af, path = unix_addr
+ assert_equal(2, unix_addr.length)
+ af, path = unix_addr
+ if path != "" # connection-oriented socket may not return the peer address.
assert_equal(serv_path, path)
end
s.close