summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-12 22:04:07 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-12 22:05:14 +0900
commit68321dd1fa6f55e578bc9776f906ee1f948c7095 (patch)
tree974e59dd0ea6d51943540cd4bd7f86b32e377584 /test/net
parentdd60856f8ddaa0652bf019589f05705e00279b8c (diff)
Move `rescue` for debug into block of assert_raise
Diffstat (limited to 'test/net')
-rw-r--r--test/net/imap/test_imap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index 28590c3..850974f 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -482,9 +482,9 @@ class IMAPTest < Test::Unit::TestCase
end
assert_raise(Net::IMAP::Error) do
Net::IMAP.new(server_addr, :port => port)
+ rescue Errno::EINVAL => e # for debug on OpenCSW
+ raise({e: e, server: server, port: port, server_addr: server_addr}.inspect)
end
- rescue Errno::EINVAL => e # for debug on OpenCSW
- raise({e: e, server: server, port: port, server_addr: server_addr}.inspect)
end
def test_default_port