This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -3170,14 +3170,13 @@ fn handle_tx(
3170
3170
mod tests {
3171
3171
use {
3172
3172
super :: * ,
3173
- assert_cmd:: prelude:: * ,
3174
3173
solana_client:: blockhash_query:: Source ,
3175
3174
solana_sdk:: {
3176
3175
bpf_loader,
3177
3176
signature:: { Keypair , Signer } ,
3178
3177
} ,
3179
3178
solana_test_validator:: { ProgramInfo , TestValidator , TestValidatorGenesis } ,
3180
- std:: { path:: PathBuf , process :: Command } ,
3179
+ std:: path:: PathBuf ,
3181
3180
} ;
3182
3181
3183
3182
fn clone_keypair ( keypair : & Keypair ) -> Keypair {
@@ -3715,16 +3714,4 @@ mod tests {
3715
3714
assert_eq ! ( ui_account. mint, token. to_string( ) ) ;
3716
3715
assert_eq ! ( ui_account. owner, aux_string) ;
3717
3716
}
3718
-
3719
- #[ test]
3720
- fn invalid_config_will_cause_commands_to_fail ( ) {
3721
- let mut cmd = Command :: cargo_bin ( "spl-token" ) . unwrap ( ) ;
3722
- let args = & [ "address" , "--config" , "~/nonexistent/config.yml" ] ;
3723
-
3724
- cmd. args ( args)
3725
- . assert ( )
3726
- . stderr ( "error: Could not find config file `~/nonexistent/config.yml`\n " ) ;
3727
-
3728
- cmd. args ( args) . assert ( ) . code ( 1 ) . failure ( ) ;
3729
- }
3730
3717
}
Original file line number Diff line number Diff line change
1
+ use assert_cmd:: cmd:: Command ;
2
+
3
+ #[ test]
4
+ fn invalid_config_will_cause_commands_to_fail ( ) {
5
+ let mut cmd = Command :: cargo_bin ( "spl-token" ) . unwrap ( ) ;
6
+ let args = & [ "address" , "--config" , "~/nonexistent/config.yml" ] ;
7
+ cmd. args ( args)
8
+ . assert ( )
9
+ . stderr ( "error: Could not find config file `~/nonexistent/config.yml`\n " ) ;
10
+ cmd. args ( args) . assert ( ) . code ( 1 ) . failure ( ) ;
11
+ }
You can’t perform that action at this time.
0 commit comments