timeline: fix test after wait_and_evict

This commit is contained in:
Joonas Koivunen
2023-08-21 09:48:11 +03:00
parent a6b6dd2f36
commit acd2e7f222

View File

@@ -4286,18 +4286,15 @@ mod tests {
let (first, second) = (only_one(first), only_one(second));
assert_eq!(batch[0].needs_download_blocking().unwrap(), None);
// both seemingly succeed, but only one will actually evict
match (first, second) {
(Ok(()), Err(EvictionError::NotFound)) | (Err(EvictionError::NotFound), Ok(())) => {}
other => unreachable!("unexpected {:?}", other),
}
batch[0]
.needs_download_blocking()
.unwrap()
.expect("should now have a reason to download");
match (first, second) {
(Ok(()), Err(EvictionError::NotFound)) | (Err(EvictionError::NotFound), Ok(())) => {}
other => unreachable!("unexpected {:?}", other),
}
}
fn any_context() -> crate::context::RequestContext {