diff options
| author | Kazuki Yamaguchi <k@rhe.jp> | 2025-02-06 23:51:44 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-02-09 10:26:07 +0000 |
| commit | 64a98decf2d58754d9faefa30d9e86d79c63f805 (patch) | |
| tree | aafcb89a789b2d27dcd5351dc8129271348c9120 /spec/ruby/core/integer/plus_spec.rb | |
| parent | 5791c93f8e16fedfcad861d83e9a54da05fd6154 (diff) | |
[ruby/openssl] ssl: fix misuse of assert_handshake_error in tests
assert_handshake_error is useful for checking handshake failures
triggered by the peer, as the underlying socket may be closed
prematurely, leading to different exceptions depending on the platform
and timing.
However, when the local end aborts a handshake, the only possible
exception is OpenSSL::SSL::SSLError. Use stricter assertions in such
cases.
https://github.com/ruby/openssl/commit/637ba65818
Diffstat (limited to 'spec/ruby/core/integer/plus_spec.rb')
0 files changed, 0 insertions, 0 deletions
