cultcache-rs: race test names its store opener type
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
d5824a854c
commit
8fbe38bcbc
1 changed files with 2 additions and 1 deletions
|
|
@ -9700,7 +9700,8 @@ mod tests {
|
|||
fn two_writers_racing_two_types_onto_one_key_leave_one_winner() -> Result<()> {
|
||||
let temp = tempfile::tempdir()?;
|
||||
let owned = OwnedRedbMessagePackBackingStore::new(temp.path().join("owned.db"))?;
|
||||
let stores: Vec<(&str, Box<dyn Fn() -> Box<dyn CacheBackingStore + Send>>)> = vec![
|
||||
type Opener = Box<dyn Fn() -> Box<dyn CacheBackingStore + Send>>;
|
||||
let stores: Vec<(&str, Opener)> = vec![
|
||||
("single", Box::new({
|
||||
let path = temp.path().join("single.cc");
|
||||
move || -> Box<dyn CacheBackingStore + Send> { Box::new(SingleFileMessagePackBackingStore::new(&path)) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue