summaryrefslogtreecommitdiff
path: root/test/net/imap
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-14 06:38:32 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-14 06:38:32 +0000
commit9d155ebf5142f3018b3d340d350f9d6ea326a2e0 (patch)
tree60abc4ce8cf8385f70477246fa4bb7bea32c98c2 /test/net/imap
parent2661691698568ed745d89ad5bc7663c3746185db (diff)
* test/net/imap/test_imap.rb: call neither logout nor disconnect
unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/imap')
-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 8ccec642c0..01982ab815 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -435,9 +435,9 @@ class IMAPTest < Test::Unit::TestCase
begin
begin
imap = yield(port)
- imap.logout
+ imap.logout if !imap.disconnected?
ensure
- imap.disconnect if imap
+ imap.disconnect if imap && !imap.disconnected?
end
ensure
server.close