summaryrefslogtreecommitdiff
path: root/test/socket/test_udp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_udp.rb')
-rw-r--r--test/socket/test_udp.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb
index 07fd17a2cb..d515ad4dbb 100644
--- a/test/socket/test_udp.rb
+++ b/test/socket/test_udp.rb
@@ -6,26 +6,26 @@ end
class TestUDPSocket < Test::Unit::TestCase
- def test_connect # [ruby-dev:25045]
+ def test_connect
s = UDPSocket.new
host = Object.new
class << host; self end.send(:define_method, :to_str) {
s.close
"127.0.0.1"
}
- assert_raise(IOError) {
+ assert_raise(IOError, "[ruby-dev:25045]") {
s.connect(host, 1)
}
end
- def test_bind # [ruby-dev:25057]
+ def test_bind
s = UDPSocket.new
host = Object.new
class << host; self end.send(:define_method, :to_str) {
s.close
"127.0.0.1"
}
- assert_raise(IOError) {
+ assert_raise(IOError, "[ruby-dev:25057]") {
s.bind(host, 2000)
}
end