Bugfix/test get rent collection accounts remove random account (#26178)
* Use default GenisisConfig so we don't have a random account * Formatting
This commit is contained in:
parent
a36abfda28
commit
4a729effff
|
@ -411,7 +411,7 @@ mod tests {
|
||||||
solana_sdk::{
|
solana_sdk::{
|
||||||
account::{AccountSharedData, ReadableAccount, WritableAccount},
|
account::{AccountSharedData, ReadableAccount, WritableAccount},
|
||||||
bpf_loader_upgradeable::{self, UpgradeableLoaderState},
|
bpf_loader_upgradeable::{self, UpgradeableLoaderState},
|
||||||
genesis_config::create_genesis_config,
|
genesis_config::{create_genesis_config, GenesisConfig},
|
||||||
pubkey::Pubkey,
|
pubkey::Pubkey,
|
||||||
signer::Signer,
|
signer::Signer,
|
||||||
stake,
|
stake,
|
||||||
|
@ -423,7 +423,7 @@ mod tests {
|
||||||
fn test_get_rent_collection_accounts() {
|
fn test_get_rent_collection_accounts() {
|
||||||
solana_logger::setup();
|
solana_logger::setup();
|
||||||
|
|
||||||
let (genesis_config, _) = create_genesis_config(1_000_000);
|
let genesis_config = GenesisConfig::default();
|
||||||
let bank = Arc::new(Bank::new_for_tests(&genesis_config));
|
let bank = Arc::new(Bank::new_for_tests(&genesis_config));
|
||||||
|
|
||||||
// Slots correspond to subrange: A52Kf8KJNVhs1y61uhkzkSF82TXCLxZekqmFwiFXLnHu..=ChWNbfHUHLvFY3uhXj6kQhJ7a9iZB4ykh34WRGS5w9NE
|
// Slots correspond to subrange: A52Kf8KJNVhs1y61uhkzkSF82TXCLxZekqmFwiFXLnHu..=ChWNbfHUHLvFY3uhXj6kQhJ7a9iZB4ykh34WRGS5w9NE
|
||||||
|
|
Loading…
Reference in New Issue