diff options
Diffstat (limited to 'test/test_ssl.rb')
-rw-r--r-- | test/test_ssl.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb index 7f0b939c..ccdbf8e1 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -1252,6 +1252,18 @@ end sock2.close end + def test_freeze_calls_setup + bug = "[ruby/openssl#85]" + start_server(ignore_listener_error: true) { |server, port| + ctx = OpenSSL::SSL::SSLContext.new + ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER + ctx.freeze + assert_raise(OpenSSL::SSL::SSLError, bug) { + server_connect(port, ctx) + } + } + end + private def start_server_version(version, ctx_proc = nil, |