Project

General

Profile

Bug #3318

net/imap/test_imap.rb reports an error on Windows

Added by usa (Usaku NAKAMURA) over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
ruby -v:
ruby 1.9.3dev (2010-05-19 trunk 27889) [i386-mswin32]
Backport:
[ruby-dev:41350]

Description

=begin
imapのテストが以下のようなエラーを出します。

1) Error:
test_idle_done_not_during_idle(IMAPTest):
IOError: closed stream
C:/ruby/test/net/imap/test_imap.rb:283:in `test_idle_done_not_during_idle'

以下のパッチで問題は出なくなるんですが、これでいいんでしょうか?
実はsocketレベルに問題がありそうだったりしますか?

Index: lib/net/imap.rb
===================================================================
--- lib/net/imap.rb (revision 27889)
+++ lib/net/imap.rb (working copy)
@@ -311,7 +311,7 @@ module Net
@receiver_thread.raise(e)
end
@receiver_thread.join

  • @sock.close
  • @sock.close unless @sock.closed? raise e if e end =end

Also available in: Atom PDF