summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-05 05:11:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-05 05:11:15 +0000
commit46f6b08152e74209590403f4d9d894237d7d98fe (patch)
treef7b532fadfe5c2bb4a5b25227751fad0e3d56700 /test
parentbe77d0276d2d1c45305f6c5a68384c873a66cb83 (diff)
* test/net/imap/test_imap.rb (test_exception_during_shutdown):
need to raise always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/net/imap/test_imap.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index 15528b2962..cd9b2824a4 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -316,7 +316,7 @@ class IMAPTest < Test::Unit::TestCase
end
def test_exception_during_shutdown
- server = TCPServer.new(0)
+ server = create_tcp_server
port = server.addr[1]
Thread.start do
begin
@@ -338,6 +338,7 @@ class IMAPTest < Test::Unit::TestCase
imap.instance_eval do
def @sock.shutdown(*args)
super
+ ensure
raise "error"
end
end