cultcache-rs: stale-gate test stages its batch by type

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

View file

@ -539,7 +539,9 @@ fn last_read_follows_this_handles_own_writes() {
cache.put("a", &unique("A")).unwrap();
cache.put("p", &Plain { value: "1".into() }).unwrap();
cache.put("b", &unique("B")).unwrap();
cache.put_prepared_batch(staged(&cache, &[("p", Plain { value: "2".into() }), ("c", unique("C"))])).unwrap();
let mut rows = staged(&cache, &[("p", Plain { value: "2".into() })]);
rows.extend(staged(&cache, &[("c", unique("C"))]));
cache.put_prepared_batch(rows).unwrap();
assert!(cache.delete::<Plain>("p").unwrap());
cache.put("d", &unique("D")).unwrap();
cache.put("a", &unique("A2")).unwrap();