diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-08-23 20:28:11 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-08-24 21:01:09 +0900 |
commit | ac482b7ca7505c50ac7d5d84a32ae4dc0c5ea438 (patch) | |
tree | d5a0057221b0010906087b16e6a22ce303945432 /test | |
parent | c24c56b84abb068f1aeda7ee7acb216ecf3fa335 (diff) | |
download | ruby-openssl-ac482b7ca7505c50ac7d5d84a32ae4dc0c5ea438.tar.gz |
test/test_ssl: remove test_invalid_shutdown_by_gc
The very patch that added this test case made the dfree function not
send close_notify alert when an SSLSocket is being GCed.
Anyway, the new OSSL_GC_STRESS option added by 6ee4b285036e ("test: run
test cases under GC.stress if OSSL_GC_STRESS is specified", 2016-12-04)
will cover this kind of issues.
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ssl.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb index 872dd226..452e7c47 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -1005,20 +1005,6 @@ if OpenSSL::OPENSSL_VERSION_NUMBER > 0x10001000 && end - def test_invalid_shutdown_by_gc - assert_nothing_raised { - start_server { |port| - 10.times { - sock = TCPSocket.new("127.0.0.1", port) - ssl = OpenSSL::SSL::SSLSocket.new(sock) - GC.start - ssl.connect - sock.close - } - } - } - end - def test_close_after_socket_close start_server { |port| sock = TCPSocket.new("127.0.0.1", port) |