1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/openssl
Yusuke Endoh be76e86e69 test/openssl/test_ssl.rb: ignore SSLError when the connection is closed
"test_close_after_socket_close" checks if ssl.close is no-op even after
the wrapped socket is closed.  The test itself is fair, but the other
endpoint that is reading the SSL connection may fail with SSLError:
"SSL_read: unexpected eof while reading" in some environments:

https://github.com/ruby/ruby/actions/runs/60085389 (MinGW)
https://rubyci.org/logs/rubyci.s3.amazonaws.com/android28-x86_64/ruby-master/log/20200321T034442Z.fail.html.gz
```
  1) Failure:
OpenSSL::TestSSL#test_close_after_socket_close [D:/a/ruby/ruby/src/test/openssl/utils.rb:299]:
exceptions on 1 threads:
SSL_read: unexpected eof while reading
```

This changeset rescues and ignores the SSLError in the test.
2020-03-21 15:46:33 +09:00
..
fixtures/pkey openssl: sync with upstream repository 2020-03-10 17:41:01 +09:00
test_asn1.rb
test_bn.rb
test_buffering.rb
test_cipher.rb
test_config.rb openssl: sync with upstream repository 2020-03-10 17:41:01 +09:00
test_digest.rb openssl: sync with upstream repository 2020-03-10 17:41:01 +09:00
test_engine.rb
test_fips.rb
test_hmac.rb
test_kdf.rb
test_ns_spki.rb
test_ocsp.rb
test_ossl.rb Make OpenSSL::OSSL#test_memcmp_timing robust 2020-02-16 19:55:19 +09:00
test_pair.rb openssl: sync with upstream repository 2020-03-10 17:41:01 +09:00
test_pkcs7.rb
test_pkcs12.rb
test_pkey_dh.rb
test_pkey_dsa.rb
test_pkey_ec.rb
test_pkey_rsa.rb
test_random.rb
test_ssl.rb test/openssl/test_ssl.rb: ignore SSLError when the connection is closed 2020-03-21 15:46:33 +09:00
test_ssl_session.rb
test_ts.rb [ruby/openssl] ts: simplify OpenSSL::Timestamp::Request#algorithm 2020-02-17 20:50:47 +09:00
test_x509attr.rb
test_x509cert.rb
test_x509crl.rb
test_x509ext.rb
test_x509name.rb
test_x509req.rb
test_x509store.rb
ut_eof.rb
utils.rb