TestValidator now implements Drop, no need to close() it
This commit is contained in:
committed by
mergify[bot]
parent
0a9ff1dc9d
commit
bbad3fe501
@ -141,6 +141,4 @@ fn test_cli_deploy_program() {
|
||||
assert_eq!(account2.owner, bpf_loader::id());
|
||||
assert_eq!(account2.executable, true);
|
||||
assert_eq!(account0.data, account2.data);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
@ -210,8 +210,6 @@ fn full_battery_tests(
|
||||
check_recent_balance(1000, &rpc_client, &config_payer.signers[0].pubkey());
|
||||
check_recent_balance(800, &rpc_client, &nonce_account);
|
||||
check_recent_balance(200, &rpc_client, &payee_pubkey);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -333,6 +331,4 @@ fn test_create_account_with_seed() {
|
||||
check_recent_balance(31, &rpc_client, &offline_nonce_authority_signer.pubkey());
|
||||
check_recent_balance(4000, &rpc_client, &online_nonce_creator_signer.pubkey());
|
||||
check_recent_balance(10, &rpc_client, &to_address);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
@ -38,6 +38,4 @@ fn test_cli_request_airdrop() {
|
||||
.unwrap()
|
||||
.value;
|
||||
assert_eq!(balance, 50);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
@ -108,8 +108,6 @@ fn test_stake_delegation_force() {
|
||||
fee_payer: 0,
|
||||
};
|
||||
process_command(&config).unwrap();
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -189,8 +187,6 @@ fn test_seed_stake_delegation_and_deactivation() {
|
||||
fee_payer: 0,
|
||||
};
|
||||
process_command(&config_validator).unwrap();
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -266,8 +262,6 @@ fn test_stake_delegation_and_deactivation() {
|
||||
fee_payer: 0,
|
||||
};
|
||||
process_command(&config_validator).unwrap();
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -400,8 +394,6 @@ fn test_offline_stake_delegation_and_deactivation() {
|
||||
fee_payer: 0,
|
||||
};
|
||||
process_command(&config_payer).unwrap();
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -516,8 +508,6 @@ fn test_nonced_stake_delegation_and_deactivation() {
|
||||
fee_payer: 0,
|
||||
};
|
||||
process_command(&config).unwrap();
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -789,8 +779,6 @@ fn test_stake_authorize() {
|
||||
.unwrap()
|
||||
.blockhash;
|
||||
assert_ne!(nonce_hash, new_nonce_hash);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -916,8 +904,6 @@ fn test_stake_authorize_with_fee_payer() {
|
||||
// `config_offline` however has paid 1 sig due to being both authority
|
||||
// and fee payer
|
||||
check_recent_balance(100_000 - SIG_FEE, &rpc_client, &offline_pubkey);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -1061,8 +1047,6 @@ fn test_stake_split() {
|
||||
&rpc_client,
|
||||
&split_account.pubkey(),
|
||||
);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -1324,8 +1308,6 @@ fn test_stake_set_lockup() {
|
||||
);
|
||||
assert_eq!(current_lockup.epoch, lockup.epoch.unwrap());
|
||||
assert_eq!(current_lockup.custodian, offline_pubkey);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -1538,6 +1520,4 @@ fn test_offline_nonced_create_stake_account_and_withdraw() {
|
||||
let seed_address =
|
||||
Pubkey::create_with_seed(&stake_pubkey, seed, &solana_stake_program::id()).unwrap();
|
||||
check_recent_balance(50_000, &rpc_client, &seed_address);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
@ -237,8 +237,6 @@ fn test_transfer() {
|
||||
process_command(&config).unwrap();
|
||||
check_recent_balance(28, &rpc_client, &offline_pubkey);
|
||||
check_recent_balance(40, &rpc_client, &recipient_pubkey);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -358,8 +356,6 @@ fn test_transfer_multisession_signing() {
|
||||
check_recent_balance(1, &rpc_client, &offline_from_signer.pubkey());
|
||||
check_recent_balance(1, &rpc_client, &offline_fee_payer_signer.pubkey());
|
||||
check_recent_balance(42, &rpc_client, &to_pubkey);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -405,6 +401,4 @@ fn test_transfer_all() {
|
||||
process_command(&config).unwrap();
|
||||
check_recent_balance(0, &rpc_client, &sender_pubkey);
|
||||
check_recent_balance(49_999, &rpc_client, &recipient_pubkey);
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
@ -125,6 +125,4 @@ fn test_vote_authorize_and_withdraw() {
|
||||
withdraw_authority: 1,
|
||||
};
|
||||
process_command(&config).unwrap();
|
||||
|
||||
test_validator.close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user