diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/net/imap/test_imap.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@ruby-lang.org> + + * test/net/imap/test_imap.rb: call neither logout nor disconnect + unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860] + Fri Jan 14 14:56:57 2011 NARUSE, Yui <naruse@ruby-lang.org> * lib/net/imap.rb: use bytesize for binary strings. 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 |