Skip to content

Commit

Permalink
Fix flaky fuzzer test (anza-xyz#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Aug 27, 2024
1 parent cffbe44 commit eff8961
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ crate-type = ["lib"]
name = "solana_runtime"

[dev-dependencies]
agave-transaction-view = { workspace = true }
assert_matches = { workspace = true }
ed25519-dalek = { workspace = true }
libsecp256k1 = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion runtime/src/bank/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use {
snapshot_bank_utils, snapshot_utils,
status_cache::MAX_CACHE_ENTRIES,
},
agave_transaction_view::static_account_keys_meta::MAX_STATIC_ACCOUNTS_PER_PACKET,
assert_matches::assert_matches,
crossbeam_channel::{bounded, unbounded},
itertools::Itertools,
Expand Down Expand Up @@ -6192,7 +6193,7 @@ fn test_fuzz_instructions() {
})
.collect();
let (bank, _bank_forks) = bank.wrap_with_bank_forks_for_tests();
let max_keys = 100;
let max_keys = MAX_STATIC_ACCOUNTS_PER_PACKET;
let keys: Vec<_> = (0..max_keys)
.enumerate()
.map(|_| {
Expand Down

0 comments on commit eff8961

Please sign in to comment.