From eaa478720168e54c87c8402acc457ddbad7e5cb1 Mon Sep 17 00:00:00 2001 From: steviez Date: Thu, 22 Sep 2022 18:37:47 -0500 Subject: [PATCH] Cleanup blockstore test (#27999) --- ledger/src/blockstore.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index 17727c23a1..261bc7439d 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -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(); }