summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/mod.rs')
-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 f4c6fde0..0e277fd3 100644
--- a/openpgp/src/cert/mod.rs
+++ b/openpgp/src/cert/mod.rs
@@ -1903,8 +1903,8 @@ mod test {
let p = &P::new();
let (cert, _) = CertBuilder::new()
- .set_expiration(None) // Just to assert this works.
- .set_expiration(
+ .set_expiration_time(None) // Just to assert this works.
+ .set_expiration_time(
Some(crate::types::Duration::weeks(52).unwrap().into()))
.generate().unwrap();
assert_eq!(cert.clone().into_packet_pile().children().count(),