* 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
@ -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>
|
Fri Jan 14 14:56:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* lib/net/imap.rb: use bytesize for binary strings.
|
* lib/net/imap.rb: use bytesize for binary strings.
|
||||||
|
@ -435,9 +435,9 @@ class IMAPTest < Test::Unit::TestCase
|
|||||||
begin
|
begin
|
||||||
begin
|
begin
|
||||||
imap = yield(port)
|
imap = yield(port)
|
||||||
imap.logout
|
imap.logout if !imap.disconnected?
|
||||||
ensure
|
ensure
|
||||||
imap.disconnect if imap
|
imap.disconnect if imap && !imap.disconnected?
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
server.close
|
server.close
|
||||||
|
Loading…
x
Reference in New Issue
Block a user