aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-11-19 00:07:55 -0500
committerJack Lloyd <[email protected]>2017-11-19 00:07:55 -0500
commit148f43b60917d5c6b8d0ad1204cd51e1841a2855 (patch)
tree54beccdeffec23a030f776ebb27f39b91a6e2414 /src/tests
parentbfa63529991ab239c9ac2b008c0e89f23782693e (diff)
Avoid OCSPing on the Let's Encrypt CA cert
Their issuing CA seems to have some performance problems with OCSP (https://github.com/letsencrypt/boulder/issues/1929) and it's currently causing timeouts in the tests.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_ocsp.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tests/test_ocsp.cpp b/src/tests/test_ocsp.cpp
index 1d64018cc..ef4c5634b 100644
--- a/src/tests/test_ocsp.cpp
+++ b/src/tests/test_ocsp.cpp
@@ -198,18 +198,14 @@ class OCSP_Tests final : public Test
typedef std::chrono::system_clock Clock;
const auto ocspTimeout = std::chrono::milliseconds(3000);
- auto ocsp_status = Botan::PKIX::check_ocsp_online(cert_path, { &certstore }, Clock::now(), ocspTimeout, true);
+ auto ocsp_status = Botan::PKIX::check_ocsp_online(cert_path, { &certstore }, Clock::now(), ocspTimeout, false);
- if(result.test_eq("Expected size of ocsp_status", ocsp_status.size(), 2))
+ if(result.test_eq("Expected size of ocsp_status", ocsp_status.size(), 1))
{
if(result.test_eq("Expected size of ocsp_status[0]", ocsp_status[0].size(), 1))
{
result.confirm("Status expired", ocsp_status[0].count(Botan::Certificate_Status_Code::OCSP_HAS_EXPIRED));
}
- if(result.test_eq("Expected size of ocsp_status[1]", ocsp_status[1].size(), 1))
- {
- result.confirm("Status good", ocsp_status[1].count(Botan::Certificate_Status_Code::OCSP_RESPONSE_GOOD));
- }
}
return result;