ruby-changes:43429
From: nobu <ko1@a...>
Date: Sat, 25 Jun 2016 11:32:12 +0900 (JST)
Subject: [ruby-changes:43429] nobu:r55503 (trunk): Refine assertion
nobu 2016-06-25 11:32:06 +0900 (Sat, 25 Jun 2016) New Revision: 55503 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55503 Log: Refine assertion * test/openssl/test_ocsp.rb: assert_in_delta for better message. Modified files: trunk/test/openssl/test_ocsp.rb Index: test/openssl/test_ocsp.rb =================================================================== --- test/openssl/test_ocsp.rb (revision 55502) +++ test/openssl/test_ocsp.rb (revision 55503) @@ -183,7 +183,7 @@ class OpenSSL::TestOCSP < OpenSSL::TestC https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ocsp.rb#L183 assert_equal OpenSSL::OCSP::V_CERTSTATUS_REVOKED, single.cert_status assert_equal OpenSSL::OCSP::REVOKED_STATUS_UNSPECIFIED, single.revocation_reason assert_equal now - 400, single.revocation_time - assert (single.this_update - (now - 300)) < 2 + assert_in_delta (now - 301), single.this_update, 1 assert_equal nil, single.next_update assert_equal [], single.extensions -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/