summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types/timestamp.rs
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2021-03-23 12:21:22 -0400
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-06 13:26:10 +0200
commiteb371b84d900295e8d9c31fe91226f5cb41a2fbf (patch)
tree32eee1de91b406e24064f4944ae5dec4691aabc2 /openpgp/src/types/timestamp.rs
parent9c7e46aeba93f3206505cb819271487855ea091c (diff)
openpgp: Correct system_time_32_bit test.
@nwalfield suggested this correction in #697
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r--openpgp/src/types/timestamp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs
index 1d9c2b84..af318c29 100644
--- a/openpgp/src/types/timestamp.rs
+++ b/openpgp/src/types/timestamp.rs
@@ -682,7 +682,7 @@ mod tests {
UNIX_EPOCH + SystemDuration::new(i32::MAX as u64, 0));
let t3 = Timestamp::from(i32::MAX as u32 - 1);
- assert!(SystemTime::from(t3),
+ assert_eq!(SystemTime::from(t3),
UNIX_EPOCH + SystemDuration::new(i32::MAX as u64 - 1, 0));
Ok(())
}