mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
timeline: fix test after wait_and_evict
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user