From 32205f8b2b12980758ead181ca41883a388fd9d9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 00:57:26 +0100 Subject: [PATCH] thing-testkit: store::create pulls before writing Co-Authored-By: Claude Sonnet 5.5 --- crates/thing-testkit/src/store.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/thing-testkit/src/store.rs b/crates/thing-testkit/src/store.rs index 5f20791..919a24b 100644 --- a/crates/thing-testkit/src/store.rs +++ b/crates/thing-testkit/src/store.rs @@ -20,6 +20,9 @@ pub fn create(path: &Path) -> CultCache { let _ = std::fs::remove_file(path); let mut cache = memory(); cache.add_generic_backing_store(SingleFileMessagePackBackingStore::new(path)).unwrap(); + // From cultcache-rs 0.4 a cache that attached a store refuses writes until it pulls; the file + // was just removed, so the pull is empty. + cache.pull_all_backing_stores().unwrap(); cache }