diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-14 06:38:32 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-14 06:38:32 +0000 |
commit | 9d155ebf5142f3018b3d340d350f9d6ea326a2e0 (patch) | |
tree | 60abc4ce8cf8385f70477246fa4bb7bea32c98c2 /test/net | |
parent | 2661691698568ed745d89ad5bc7663c3746185db (diff) | |
download | ruby-9d155ebf5142f3018b3d340d350f9d6ea326a2e0.tar.gz |
* 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')
-rw-r--r-- | test/net/imap/test_imap.rb | 4 |
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 |