Project

General

Profile

Actions

Bug #11368

closed

Fix LocalJumpErrors being raised in OpenSSL tests

Added by jeremyevans0 (Jeremy Evans) almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-07-16 openbsd 51261) [x86_64-openbsd]
[ruby-core:70020]

Description

In many cases in the test suite, server_connect is being called
without a block inside an assert_raises block. This leads to
misleading error messages, such as:

[OpenSSL::SSL::SSLError, Errno::ECONNRESET] exception expected, not.
Class:

This changes the error message for those failures to:

[OpenSSL::SSL::SSLError, Errno::ECONNRESET] expected but nothing was
raised.


Files

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0