diff --git a/src/storage.rs b/src/storage.rs index 9b2f69a..7ae5759 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -88,7 +88,7 @@ mod tests { ciphertext: TEST_CIPHERTEXT.into(), }; let s = super::encode(TEST_IKM_ID, &data); - let (id, decoded_data) = super::decode(TEST_STR).unwrap(); + let (id, decoded_data) = super::decode(&s).unwrap(); assert_eq!(id, TEST_IKM_ID); assert_eq!(decoded_data.nonce, data.nonce); assert_eq!(decoded_data.ciphertext, data.ciphertext);