Skip to content

Commit

Permalink
test/openssl/test_ssl: use assert_raise in test_bad_socket
Browse files Browse the repository at this point in the history
The Ruby tree disallows assert_raises.
  • Loading branch information
rhenium committed Oct 23, 2021
1 parent c2cc78a commit 9b4f761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/openssl/test_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class OpenSSL::TestSSL < OpenSSL::SSLTestCase
def test_bad_socket
bad_socket = Struct.new(:sync).new
assert_raises TypeError do
assert_raise TypeError do
socket = OpenSSL::SSL::SSLSocket.new bad_socket
# if the socket is not a T_FILE, `connect` will segv because it tries
# to get the underlying file descriptor but the API it calls assumes
Expand Down

0 comments on commit 9b4f761

Please sign in to comment.