Project

General

Profile

Actions

Bug #1324

closed

Imap Tests hanging

Added by cfis (Charlie Savage) over 15 years ago. Updated over 13 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-29) [i386-mswin32_90]
Backport:
[ruby-core:23052]

Description

=begin
Ruby built with VC2008. Two tests, test_starttls and test_unexpected_eof hang. Tracing through the debugger, the two threads are in loops that call select and then go to sleep. They never come out of it. Note that changing the server = TCPServer.new(0) to server = TCPServer.new("localhost") allows the tests to run, but then:

ruby net\imap\test_imap.rb

  1. Failure:
    test_imaps_post_connection_check(IMAPTest) [net/imap/test_imap.rb:59]:
    [OpenSSL::SSL::SSLError] exception expected, not
    Class:
    Message: <"getaddrinfo: The specified class was not found. ">
    ---Backtrace---
    net/imap/test_imap.rb:118:in initialize' net/imap/test_imap.rb:118:in new'
    net/imap/test_imap.rb:118:in imaps_test' net/imap/test_imap.rb:60:in block in test_imaps_post_connection_check'

  1. Failure:
    test_imaps_unknown_ca(IMAPTest) [net/imap/test_imap.rb:23]:
    [OpenSSL::SSL::SSLError] exception expected, not
    Class:
    Message: <"getaddrinfo: The specified class was not found. ">
    ---Backtrace---
    net/imap/test_imap.rb:118:in initialize' net/imap/test_imap.rb:118:in new'
    net/imap/test_imap.rb:118:in imaps_test' net/imap/test_imap.rb:24:in block in test_imaps_unknown_ca'

  1. Failure:
    test_imaps_verify_none(IMAPTest) [net/imap/test_imap.rb:47]:
    Exception raised:
    <#<SocketError: getaddrinfo: The specified class was not found. >>.

  2. Failure:
    test_imaps_with_ca_file(IMAPTest) [net/imap/test_imap.rb:35]:
    Exception raised:
    <#<SocketError: getaddrinfo: The specified class was not found. >>.

  3. Error:
    test_starttls(IMAPTest):
    SocketError: getaddrinfo: The specified class was not found.
    net/imap/test_imap.rb:156:in initialize' net/imap/test_imap.rb:156:in new'
    net/imap/test_imap.rb:156:in starttls_test' net/imap/test_imap.rb:72:in test_starttls'

  4. Error:
    test_unexpected_eof(IMAPTest):
    SocketError: getaddrinfo: The specified class was not found.
    net/imap/test_imap.rb:85:in initialize' net/imap/test_imap.rb:85:in new'
    net/imap/test_imap.rb:85:in `test_unexpected_eof'
    =end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0