summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2022-01-27 15:13:57 +0100
committerJustus Winter <justus@sequoia-pgp.org>2022-01-27 15:20:50 +0100
commitd29ca4c40f24467e8347f072b102a351226afd37 (patch)
treec638d6a1abef2bf8f804038186c8bb0773155e8c
parentd5f10bd039bcf7ff3e28423f2bfe399effbb7cc1 (diff)
openpgp: Make the test even less timing-sensitive.
- This is the most problematic part of the test, actually. - Fixes #777. Again.
-rw-r--r--openpgp/src/packet/signature.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/openpgp/src/packet/signature.rs b/openpgp/src/packet/signature.rs
index dada9b48..80be737b 100644
--- a/openpgp/src/packet/signature.rs
+++ b/openpgp/src/packet/signature.rs
@@ -3592,9 +3592,6 @@ mod test {
.parts_into_secret()?.into_keypair()?;
assert_eq!(alice.userids().len(), 1);
assert_eq!(alice.userids().next().unwrap().self_signatures().count(), 1);
- let creation_time =
- alice.userids().next().unwrap().self_signatures().next().unwrap()
- .signature_creation_time().unwrap();
const TRIES: u64 = 5;
assert!(TRIES * 10 < SIG_BACKDATE_BY);
@@ -3605,8 +3602,6 @@ mod test {
// Get the binding signature so that we can modify it.
let sig = alice.with_policy(p, None)?.userids().next().unwrap()
.binding_signature().clone();
- assert_eq!(sig.signature_creation_time().unwrap(),
- creation_time + std::time::Duration::new(i, 0));
let new_sig = match
SignatureBuilder::from(sig)