summaryrefslogtreecommitdiff
path: root/test/socket/test_basicsocket.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_basicsocket.rb')
-rw-r--r--test/socket/test_basicsocket.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_basicsocket.rb b/test/socket/test_basicsocket.rb
index c37f312..da977b3 100644
--- a/test/socket/test_basicsocket.rb
+++ b/test/socket/test_basicsocket.rb
@@ -9,7 +9,7 @@ class TestSocket_BasicSocket < Test::Unit::TestCase
sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
yield sock
ensure
- assert_raise(IOError) {sock.close}
+ assert(sock.closed?)
end
def test_getsockopt