diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-24 10:14:23 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-24 10:43:32 +0100 |
commit | 0ca7e1f2fbb8477e30eb751463502358788b4014 (patch) | |
tree | f68286be27e3c699249129bb37718d79e3d5a7cd | |
parent | e3c220c47e9d662e5744a964474d222220a8e5ba (diff) |
openpgp: Improve test.
-rw-r--r-- | openpgp/src/cert/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs index a35c550c..24ba7735 100644 --- a/openpgp/src/cert/mod.rs +++ b/openpgp/src/cert/mod.rs @@ -2224,10 +2224,11 @@ mod test { let f1: f32 = thread_rng().sample(Open01); let f2: f32 = thread_rng().sample(Open01); let f3: f32 = thread_rng().sample(Open01); + let f4: f32 = thread_rng().sample(Open01); let te1 = t1 - time::Duration::new((60. * 60. * 24. * 300.0 * f1) as u64, 0); let t12 = t1 + time::Duration::new((60. * 60. * 24. * 300.0 * f2) as u64, 0); let t23 = t2 + time::Duration::new((60. * 60. * 24. * 300.0 * f3) as u64, 0); - let t34 = t3 + time::Duration::new((60. * 60. * 24. * 300.0 * f3) as u64, 0); + let t34 = t3 + time::Duration::new((60. * 60. * 24. * 300.0 * f4) as u64, 0); assert_eq!(cert.revoked(te1), RevocationStatus::NotAsFarAsWeKnow); assert_eq!(cert.revoked(t12), RevocationStatus::NotAsFarAsWeKnow); |