summaryrefslogtreecommitdiff
path: root/test/openssl/test_x509store.rb
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2020-08-11 03:13:53 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2020-08-11 12:01:51 -0400
commit7930a352a57c42205eaf064c4ae70c16c5f6ed99 (patch)
treef2e9065af708392bff99eb3c7d4419cd9045c211 /test/openssl/test_x509store.rb
parent42725e3ab448448a0538e6783fd9e14c4b278891 (diff)
Test out fix for OpenSSL test flakiness
`OpenSSL::TestX509Store#test_verify` has been failing intermittently on CI about once a day: - http://ci.rvm.jp/results/trunk-random2@phosphorus-docker/3121244 - http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/3117661 - http://ci.rvm.jp/results/trunk-random1@phosphorus-docker/3111684 According to the test: > OpenSSL uses time(2) while Time.now uses clock_gettime(CLOCK_REALTIME), > and there may be difference. This difference is could be the cause for the flaky failures. Let's see if giving the certificate more room solves the problem. In any case, I will revert this in a week. I think changes to these should go to https://github.com/ruby/openssl/?
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3406
Diffstat (limited to 'test/openssl/test_x509store.rb')
-rw-r--r--test/openssl/test_x509store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/openssl/test_x509store.rb b/test/openssl/test_x509store.rb
index b0b9523e2c..1cbc73d539 100644
--- a/test/openssl/test_x509store.rb
+++ b/test/openssl/test_x509store.rb
@@ -66,7 +66,7 @@ class OpenSSL::TestX509Store < OpenSSL::TestCase
ee1_cert = issue_cert(@ee1, @dsa256, 10, ee_exts, ca2_cert, @rsa1024)
ee2_cert = issue_cert(@ee2, @dsa512, 20, ee_exts, ca2_cert, @rsa1024)
ee3_cert = issue_cert(@ee2, @dsa512, 30, ee_exts, ca2_cert, @rsa1024,
- not_before: now-100, not_after: now-1)
+ not_before: now-100, not_after: now-50)
ee4_cert = issue_cert(@ee2, @dsa512, 40, ee_exts, ca2_cert, @rsa1024,
not_before: now+1000, not_after: now+2000,)