Skip to content

Instantly share code, notes, and snippets.

@shugo
Created November 2, 2012 01:53
Show Gist options
  • Save shugo/3998167 to your computer and use it in GitHub Desktop.
Save shugo/3998167 to your computer and use it in GitHub Desktop.
test_tls_v1_2 fails
$ ruby -v test/openssl/test_ssl.rb
ruby 2.0.0dev (2012-11-01 trunk 37417) [i686-linux]
Run options:
# Running tests:
...............test/openssl/test_ssl.rb:24: warning: SSL session is not started yet.
............/home/shugo/local/lib/ruby/2.0.0/openssl/buffering.rb:53: warning: SSL session is not started yet.
..E...
Finished tests in 2.949775s, 11.1873 tests/s, 98.3126 assertions/s.
1) Error:
test_tls_v1_2(OpenSSL::TestSSL):
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=unknown state: tlsv1 alert protocol version
test/openssl/test_ssl.rb:607:in `connect'
test/openssl/test_ssl.rb:607:in `server_connect'
test/openssl/test_ssl.rb:468:in `block in test_tls_v1_2'
/home/shugo/src/ruby/test/openssl/utils.rb:293:in `call'
/home/shugo/src/ruby/test/openssl/utils.rb:293:in `start_server'
test/openssl/test_ssl.rb:593:in `start_server_version'
test/openssl/test_ssl.rb:467:in `test_tls_v1_2'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:1211:in `run'
/home/shugo/local/lib/ruby/2.0.0/test/unit/testcase.rb:17:in `run'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:837:in `block in _run_suite'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:829:in `map'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:829:in `_run_suite'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:650:in `block in _run_suites'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:648:in `each'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:648:in `_run_suites'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:789:in `_run_anything'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:978:in `run_tests'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:965:in `block in _run'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:964:in `each'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:964:in `_run'
/home/shugo/local/lib/ruby/2.0.0/minitest/unit.rb:953:in `run'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:21:in `run'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:767:in `run'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:364:in `block (2 levels) in autorun'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:27:in `run_once'
/home/shugo/local/lib/ruby/2.0.0/test/unit.rb:363:in `block in autorun'
33 tests, 290 assertions, 0 failures, 1 errors, 0 skips
ruby -v: ruby 2.0.0dev (2012-11-01 trunk 37417) [i686-linux]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment