From 9d155ebf5142f3018b3d340d350f9d6ea326a2e0 Mon Sep 17 00:00:00 2001 From: shugo Date: Fri, 14 Jan 2011 06:38:32 +0000 Subject: * 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 --- test/net/imap/test_imap.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/net/imap') 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 -- cgit v1.2.3