Browse Source

blockstore: Remove slow test_purge_huge (#9087)

We have similar correctness coverage with another test so we don't get
much from this test inserting 1000's of slots
steviez 1 week ago
parent
commit
360411c0e5
2 changed files with 1 additions and 17 deletions
  1. 0 4
      .config/nextest.toml
  2. 1 13
      ledger/tests/blockstore.rs

+ 0 - 4
.config/nextest.toml

@@ -88,10 +88,6 @@ slow-timeout = { period = "60s", terminate-after = 2 }
 filter = 'package(solana-cargo-build-sbf)'
 slow-timeout = { period = "60s", terminate-after = 5 }
 
-[[profile.ci.overrides]]
-filter = 'package(solana-ledger) & test(/^test_purge_huge$/)'
-slow-timeout = { period = "60s", terminate-after = 4 }
-
 [[profile.ci.overrides]]
 filter = 'package(solana-ledger) & test(/^shred::merkle::test::test_merkle_tree_round_trip/)'
 slow-timeout = { period = "60s", terminate-after = 3 }

+ 1 - 13
ledger/tests/blockstore.rs

@@ -2,7 +2,7 @@ use {
     solana_entry::entry,
     solana_hash::Hash,
     solana_ledger::{
-        blockstore::{self, make_many_slot_entries, test_all_empty_or_min, Blockstore},
+        blockstore::{self, Blockstore},
         get_tmp_ledger_path_auto_delete,
     },
     std::{sync::Arc, thread::Builder},
@@ -46,15 +46,3 @@ fn test_multiple_threads_insert_shred() {
         blockstore.purge_and_compact_slots(0, num_threads + 1);
     }
 }
-
-#[test]
-fn test_purge_huge() {
-    let ledger_path = get_tmp_ledger_path_auto_delete!();
-    let blockstore = Blockstore::open(ledger_path.path()).unwrap();
-
-    let (shreds, _) = make_many_slot_entries(0, 5000, 10);
-    blockstore.insert_shreds(shreds, None, false).unwrap();
-
-    blockstore.purge_and_compact_slots(0, 4999);
-    test_all_empty_or_min(&blockstore, 5000);
-}