Skip to content

Commit 21d611f

Browse files
committed
test/openssl/test_ssl: adjust certificate expiry date
test_connect_certificate_verify_failed_exception_message occasionally fails. Is it possible that OpenSSL sees a different clock from Ruby by more than 10 seconds? http://ci.rvm.jp/logfiles/brlog.trunk-random0.20211111-072828 Let's give more time after the certificate expiration date to see if this fixes the flakiness. We had similar occasional failures in test_x509store.rb before, which disappeared after ruby/ruby commit 7930a352a57c and ruby/openssl commit fb2fcbb. (cherry picked from commit ruby/ruby@cd51bf6)
1 parent 8be6b85 commit 21d611f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/openssl/test_ssl.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,8 +1000,9 @@ def test_connect_certificate_verify_failed_exception_message
10001000
}
10011001

10021002
ctx_proc = proc { |ctx|
1003+
now = Time.now
10031004
ctx.cert = issue_cert(@svr, @svr_key, 30, [], @ca_cert, @ca_key,
1004-
not_before: Time.now-100, not_after: Time.now-10)
1005+
not_before: now - 7200, not_after: now - 3600)
10051006
}
10061007
start_server(ignore_listener_error: true, ctx_proc: ctx_proc) { |port|
10071008
store = OpenSSL::X509::Store.new

0 commit comments

Comments
 (0)