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 }