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 Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_bn.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_buffering.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_cipher.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
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 Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_fips.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_hmac.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_kdf.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_ns_spki.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_ocsp.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
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 Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_pkcs12.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_pkey_dh.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_pkey_dsa.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_pkey_ec.rb Guard for OpenSSL::PKey::EC::Group::Error with unsupported platforms 2020-02-16 16:08:43 +09:00
test_pkey_rsa.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_random.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
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 Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_ts.rb [ruby/openssl] ts: simplify OpenSSL::Timestamp::Request#algorithm 2020-02-17 20:50:47 +09:00
test_x509attr.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509cert.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509crl.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509ext.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509name.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509req.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
test_x509store.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
ut_eof.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00
utils.rb Import openssl-2.2.0 (#2693) 2020-02-16 15:21:29 +09:00