cultcache-rs: correct the own-writes test's count

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-27 20:13:11 +01:00
commit d5824a854c

View file

@ -547,7 +547,7 @@ fn last_read_follows_this_handles_own_writes() {
cache.put("a", &unique("A2")).unwrap();
assert!(cache.delete::<Unique>("c").unwrap());
cache.put("e", &unique("C")).unwrap();
assert_eq!(reader(&kind, dir.path()).get_all_with_keys::<Unique>().unwrap().len(), 5);
assert_eq!(reader(&kind, dir.path()).get_all_with_keys::<Unique>().unwrap().len(), 4);
}
// update on the single-file store keeps it current too.
let dir = tempfile::tempdir().unwrap();