mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2661691698
commit
9d155ebf51
2 changed files with 7 additions and 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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue