Skip to content

Commit

Permalink
checkpoint commit
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim-crypto committed Nov 22, 2024
1 parent c81ef44 commit 5e2efb0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions token/cli/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,27 @@ macro_rules! async_trial {

#[tokio::main]
async fn main() {
println!("checkpoint 1");
let args = Arguments::from_args();
println!("checkpoint 2");
let (test_validator, payer) = new_validator_for_test().await;
println!("checkpoint 3");
let test_validator = Arc::new(test_validator);
println!("checkpoint 4");
let payer = Arc::new(payer);
println!("checkpoint 5");

// setup the native mint to be used by other tests
do_create_native_mint(&test_validator.get_async_rpc_client(), payer.as_ref()).await;
println!("checkpoint 6");

// the GC test requires its own whole environment
let (gc_test_validator, gc_payer) = new_validator_for_test().await;
println!("checkpoint 7");
let gc_test_validator = Arc::new(gc_test_validator);
println!("checkpoint 8");
let gc_payer = Arc::new(gc_payer);
println!("checkpoint 9");

// maybe come up with a way to do this through a some macro tag on the function?
let tests = vec![
Expand Down Expand Up @@ -147,6 +156,7 @@ async fn main() {
// GC messes with every other test, so have it on its own test validator
async_trial!(gc, gc_test_validator, gc_payer),
];
println!("checkpoint 10");

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

0 comments on commit 5e2efb0

Please sign in to comment.