diff --git a/packages/cultcache-rs/tests/union_parity.rs b/packages/cultcache-rs/tests/union_parity.rs index 3350a584..bb871218 100644 --- a/packages/cultcache-rs/tests/union_parity.rs +++ b/packages/cultcache-rs/tests/union_parity.rs @@ -567,7 +567,10 @@ fn through_cache(payload: &[u8]) -> Result { schema_id: None, }) .unwrap(); - cache.get::("k").map_err(|error| format!("{error:#}")) + match cache.get::("k") { + Ok(value) => Ok(value.expect("the envelope was stored")), + Err(error) => Err(format!("{error:#}")), + } } #[test]