summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-09-15 16:46:22 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-09-15 16:46:22 +0200
commit3ba922c1a8ab26a6ce271857df810a99295ed2d8 (patch)
tree235866d4c6abe30bdbe9fe8da8e17eff160ade1f
parentf0f206c04c394caf752feede0450891fc45b1f92 (diff)
openpgp: Make test more robust.
- Evaluate the certificate five minutes in the future now that we backdate newly created certs by one minute.
-rw-r--r--openpgp/src/cert/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs
index 7f6b95ad..868437a7 100644
--- a/openpgp/src/cert/mod.rs
+++ b/openpgp/src/cert/mod.rs
@@ -5122,7 +5122,7 @@ Pu1xwz57O4zo1VYf6TqHJzVC3OMvMUM2hhdecMUe5x6GorNaj6g=
let p = &P::new();
let cert_at = cert.with_policy(p,
cert.primary_key().creation_time()
- + time::Duration::new(60, 0))
+ + time::Duration::new(300, 0))
.unwrap();
assert_eq!(cert_at.userids().count(), 0);
assert_eq!(cert_at.keys().count(), 2);
@@ -5140,7 +5140,7 @@ Pu1xwz57O4zo1VYf6TqHJzVC3OMvMUM2hhdecMUe5x6GorNaj6g=
let cert_at = cert.with_policy(p,
cert.primary_key().creation_time()
- + time::Duration::new(60, 0))
+ + time::Duration::new(300, 0))
.unwrap();
assert_eq!(cert_at.userids().count(), 1);
assert_eq!(cert_at.keys().count(), 2);