@@ -7,7 +7,7 @@ use crate::helper::{generate_random_key_nonce, CliTestContext};
7
7
#[ tokio:: test]
8
8
async fn test_upload_and_download_command_with_progress_bar ( ctx : & mut CliTestContext ) {
9
9
let ( file, expected_content) = ctx. create_dummy_file ( ) . await . unwrap ( ) ;
10
- let url_path = Command :: cargo_bin ( "cli" )
10
+ let url_path = Command :: cargo_bin ( "pf- cli" )
11
11
. unwrap ( )
12
12
. args ( [
13
13
"--server-addr" ,
@@ -25,7 +25,7 @@ async fn test_upload_and_download_command_with_progress_bar(ctx: &mut CliTestCon
25
25
let url_path = std:: str:: from_utf8 ( & url_path) . unwrap ( ) . trim ( ) ;
26
26
let destination_dir = ctx. workspace . join ( "destination_dir" ) ;
27
27
tokio:: fs:: create_dir_all ( & destination_dir) . await . unwrap ( ) ;
28
- Command :: cargo_bin ( "cli" )
28
+ Command :: cargo_bin ( "pf- cli" )
29
29
. unwrap ( )
30
30
. args ( [
31
31
"--server-addr" ,
@@ -51,7 +51,7 @@ async fn test_upload_and_download_command_with_progress_bar(ctx: &mut CliTestCon
51
51
#[ tokio:: test]
52
52
async fn test_upload_and_download_command_to_the_destination_dir ( ctx : & mut CliTestContext ) {
53
53
let ( file, expected_content) = ctx. create_dummy_file ( ) . await . unwrap ( ) ;
54
- let url_path = Command :: cargo_bin ( "cli" )
54
+ let url_path = Command :: cargo_bin ( "pf- cli" )
55
55
. unwrap ( )
56
56
. args ( [
57
57
"--server-addr" ,
@@ -68,7 +68,7 @@ async fn test_upload_and_download_command_to_the_destination_dir(ctx: &mut CliTe
68
68
let url_path = std:: str:: from_utf8 ( & url_path) . unwrap ( ) . trim ( ) ;
69
69
let destination_dir = ctx. workspace . join ( "destination_dir" ) ;
70
70
tokio:: fs:: create_dir_all ( & destination_dir) . await . unwrap ( ) ;
71
- Command :: cargo_bin ( "cli" )
71
+ Command :: cargo_bin ( "pf- cli" )
72
72
. unwrap ( )
73
73
. args ( [
74
74
"--server-addr" ,
@@ -96,7 +96,7 @@ async fn test_upload_encrypt_and_download_decrypt_command_to_the_destination_dir
96
96
) {
97
97
let key_nonce = generate_random_key_nonce ( ) ;
98
98
let ( file, expected_content) = ctx. create_dummy_file ( ) . await . unwrap ( ) ;
99
- let url_path = Command :: cargo_bin ( "cli" )
99
+ let url_path = Command :: cargo_bin ( "pf- cli" )
100
100
. unwrap ( )
101
101
. args ( [
102
102
"--server-addr" ,
@@ -118,7 +118,7 @@ async fn test_upload_encrypt_and_download_decrypt_command_to_the_destination_dir
118
118
119
119
let destination_dir = ctx. workspace . join ( "destination_dir" ) ;
120
120
tokio:: fs:: create_dir_all ( & destination_dir) . await . unwrap ( ) ;
121
- Command :: cargo_bin ( "cli" )
121
+ Command :: cargo_bin ( "pf- cli" )
122
122
. unwrap ( )
123
123
. args ( [
124
124
"--server-addr" ,
@@ -150,7 +150,7 @@ async fn test_upload_encrypt_and_download_decrypt_command_to_the_destination_dir
150
150
async fn test_upload_and_download_command_to_the_destination_file ( ctx : & mut CliTestContext ) {
151
151
let ( url_path, expected_content) = ctx. upload_dummy_file ( ) . await . unwrap ( ) ;
152
152
let destination_file_path = ctx. workspace . join ( "destination_file.text" ) ;
153
- Command :: cargo_bin ( "cli" )
153
+ Command :: cargo_bin ( "pf- cli" )
154
154
. unwrap ( )
155
155
. args ( [
156
156
"--server-addr" ,
@@ -177,7 +177,7 @@ async fn test_upload_encrypt_and_download_decrypt_command_to_the_destination_fil
177
177
) {
178
178
let key_nonce = generate_random_key_nonce ( ) ;
179
179
let ( file, expected_content) = ctx. create_dummy_file ( ) . await . unwrap ( ) ;
180
- let url_path = Command :: cargo_bin ( "cli" )
180
+ let url_path = Command :: cargo_bin ( "pf- cli" )
181
181
. unwrap ( )
182
182
. args ( [
183
183
"--server-addr" ,
@@ -197,7 +197,7 @@ async fn test_upload_encrypt_and_download_decrypt_command_to_the_destination_fil
197
197
assert ! ( !tokio:: fs:: try_exists( encrypt_file) . await . unwrap( ) ) ;
198
198
let url_path = std:: str:: from_utf8 ( & url_path) . unwrap ( ) . trim ( ) ;
199
199
let destination_file_path = ctx. workspace . join ( "destination_file.txt" ) ;
200
- Command :: cargo_bin ( "cli" )
200
+ Command :: cargo_bin ( "pf- cli" )
201
201
. unwrap ( )
202
202
. args ( [
203
203
"--server-addr" ,
0 commit comments