Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes spurious failures in test_bank_update_sysvar_account #3209

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading