Skip to content

Commit

Permalink
rename async_test -> async_trial
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Nov 14, 2023
1 parent 4016d7b commit a80ca17
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions token/cli/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use {
tempfile::NamedTempFile,
};

macro_rules! async_test {
macro_rules! async_trial {
($test_func:ident, $test_validator:ident, $payer:ident) => {{
let local_test_validator = $test_validator.clone();
let local_payer = $payer.clone();
Expand Down Expand Up @@ -82,52 +82,52 @@ async fn main() {

// maybe come up with a way to do this through a some macro tag on the function?
let tests = vec![
async_test!(create_token_default, test_validator, payer),
async_test!(create_token_interest_bearing, test_validator, payer),
async_test!(set_interest_rate, test_validator, payer),
async_test!(supply, test_validator, payer),
async_test!(create_account_default, test_validator, payer),
async_test!(account_info, test_validator, payer),
async_test!(balance, test_validator, payer),
async_test!(mint, test_validator, payer),
async_test!(balance_after_mint, test_validator, payer),
async_test!(balance_after_mint_with_owner, test_validator, payer),
async_test!(accounts, test_validator, payer),
async_test!(accounts_with_owner, test_validator, payer),
async_test!(wrapped_sol, test_validator, payer),
async_test!(transfer, test_validator, payer),
async_test!(transfer_fund_recipient, test_validator, payer),
async_test!(transfer_non_standard_recipient, test_validator, payer),
async_test!(allow_non_system_account_recipient, test_validator, payer),
async_test!(close_account, test_validator, payer),
async_test!(disable_mint_authority, test_validator, payer),
async_test!(set_owner, test_validator, payer),
async_test!(transfer_with_account_delegate, test_validator, payer),
async_test!(burn_with_account_delegate, test_validator, payer),
async_test!(close_mint, test_validator, payer),
async_test!(burn_with_permanent_delegate, test_validator, payer),
async_test!(transfer_with_permanent_delegate, test_validator, payer),
async_test!(required_transfer_memos, test_validator, payer),
async_test!(cpi_guard, test_validator, payer),
async_test!(immutable_accounts, test_validator, payer),
async_test!(non_transferable, test_validator, payer),
async_test!(default_account_state, test_validator, payer),
async_test!(transfer_fee, test_validator, payer),
async_test!(confidential_transfer, test_validator, payer),
async_test!(multisig_transfer, test_validator, payer),
async_test!(offline_multisig_transfer_with_nonce, test_validator, payer),
async_test!(
async_trial!(create_token_default, test_validator, payer),
async_trial!(create_token_interest_bearing, test_validator, payer),
async_trial!(set_interest_rate, test_validator, payer),
async_trial!(supply, test_validator, payer),
async_trial!(create_account_default, test_validator, payer),
async_trial!(account_info, test_validator, payer),
async_trial!(balance, test_validator, payer),
async_trial!(mint, test_validator, payer),
async_trial!(balance_after_mint, test_validator, payer),
async_trial!(balance_after_mint_with_owner, test_validator, payer),
async_trial!(accounts, test_validator, payer),
async_trial!(accounts_with_owner, test_validator, payer),
async_trial!(wrapped_sol, test_validator, payer),
async_trial!(transfer, test_validator, payer),
async_trial!(transfer_fund_recipient, test_validator, payer),
async_trial!(transfer_non_standard_recipient, test_validator, payer),
async_trial!(allow_non_system_account_recipient, test_validator, payer),
async_trial!(close_account, test_validator, payer),
async_trial!(disable_mint_authority, test_validator, payer),
async_trial!(set_owner, test_validator, payer),
async_trial!(transfer_with_account_delegate, test_validator, payer),
async_trial!(burn_with_account_delegate, test_validator, payer),
async_trial!(close_mint, test_validator, payer),
async_trial!(burn_with_permanent_delegate, test_validator, payer),
async_trial!(transfer_with_permanent_delegate, test_validator, payer),
async_trial!(required_transfer_memos, test_validator, payer),
async_trial!(cpi_guard, test_validator, payer),
async_trial!(immutable_accounts, test_validator, payer),
async_trial!(non_transferable, test_validator, payer),
async_trial!(default_account_state, test_validator, payer),
async_trial!(transfer_fee, test_validator, payer),
async_trial!(confidential_transfer, test_validator, payer),
async_trial!(multisig_transfer, test_validator, payer),
async_trial!(offline_multisig_transfer_with_nonce, test_validator, payer),
async_trial!(
withdraw_excess_lamports_from_multisig,
test_validator,
payer
),
async_test!(withdraw_excess_lamports_from_mint, test_validator, payer),
async_test!(withdraw_excess_lamports_from_account, test_validator, payer),
async_test!(metadata_pointer, test_validator, payer),
async_test!(transfer_hook, test_validator, payer),
async_test!(metadata, test_validator, payer),
async_trial!(withdraw_excess_lamports_from_mint, test_validator, payer),
async_trial!(withdraw_excess_lamports_from_account, test_validator, payer),
async_trial!(metadata_pointer, test_validator, payer),
async_trial!(transfer_hook, test_validator, payer),
async_trial!(metadata, test_validator, payer),
// GC messes with every other test, so have it on its own test validator
async_test!(gc, gc_test_validator, gc_payer),
async_trial!(gc, gc_test_validator, gc_payer),
];

libtest_mimic::run(&args, tests).exit();
Expand Down

0 comments on commit a80ca17

Please sign in to comment.