Cleanup blockstore test (#27999)

This commit is contained in:
steviez 2022-09-22 18:37:47 -05:00 committed by GitHub
parent d84a7a4ce9
commit eaa4787201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -8422,8 +8422,9 @@ pub mod tests {
let ledger_path = get_tmp_ledger_path_auto_delete!();
let blockstore = Blockstore::open(ledger_path.path()).unwrap();
for i in 0..10 {
let slot = i;
assert_eq!(blockstore.lowest_slot(), 0);
for slot in 0..10 {
let (shreds, _) = make_slot_entries(slot, 0, 1);
blockstore.insert_shreds(shreds, None, false).unwrap();
}