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:
parent
5e3435f6fb
commit
a38a2fb6f8
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue