From 4482e297cf831e4c4484382fa9669b423f65f324 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 10:14:38 +0200 Subject: [PATCH] cultcache-rs tests: through_cache unwraps the stored envelope (fixes the previous commit's type error) The previous commit does not build its union_parity test target; this one does. Co-Authored-By: Claude Opus 5.5 --- packages/cultcache-rs/tests/union_parity.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]