fuzz test ensure we "seek" until done

This commit is contained in:
Pere Diaz Bou
2025-03-31 10:57:55 +02:00
parent 0653ccf711
commit bc660446a8

View File

@@ -4036,14 +4036,11 @@ mod tests {
}
for key in keys.iter() {
let seek_key = SeekKey::TableRowId(*key as u64);
assert!(
matches!(
cursor.seek(seek_key, SeekOp::EQ).unwrap(),
CursorResult::Ok(true)
),
"key {} is not found",
key
);
tracing::debug!("seeking key: {}", key);
let found =
run_until_done(|| cursor.seek(seek_key.clone(), SeekOp::EQ), pager.deref())
.unwrap();
assert!(found, "key {} is not found", key);
}
}
}