Skip to content

Commit

Permalink
Fixes spurious failures in test_bank_update_sysvar_account (#3209)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Oct 17, 2024
1 parent 369d2cb commit 1e6e1f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/src/bank/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3897,7 +3897,11 @@ fn test_bank_update_sysvar_account() {
for pass in 0..5 {
use sysvar::clock::Clock;

let dummy_clock_id = solana_sdk::pubkey::new_rand();
// This pubkey was chosen empirically.
// The test requires that the dummy clock id *not* be loaded for rent collection
// (since rent collection will update the rent epoch, thus causing the
// subsequent checks to fail spuriously).
let dummy_clock_id = Pubkey::from_str_const("64jsX5hwtsjsKR7eNcNU4yhgwjuXoU9KR2MpnV47iXXz");
let dummy_rent_epoch = 44;
let (mut genesis_config, _mint_keypair) = create_genesis_config(500);

Expand Down

0 comments on commit 1e6e1f5

Please sign in to comment.