@@ -44,7 +44,7 @@ impl AsyncTestContext for MainContext {
44
44
}
45
45
46
46
async fn login ( test_host : String , test_token : String ) {
47
- tokio:: task:: spawn_local ( async move {
47
+ tokio:: task:: spawn ( async move {
48
48
run_test ( TestItem {
49
49
name : "login" . to_string ( ) ,
50
50
args : vec ! [
@@ -68,8 +68,7 @@ async fn login(test_host: String, test_token: String) {
68
68
#[ test_context( MainContext ) ]
69
69
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
70
70
#[ serial_test:: serial]
71
- async fn serial_test_existing_command ( ctx : & mut MainContext ) {
72
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
71
+ async fn serial_test_existing_command ( _ctx : & mut MainContext ) {
73
72
run_test ( TestItem {
74
73
name : "existing command" . to_string ( ) ,
75
74
args : vec ! [ "zoo" . to_string( ) , "completion" . to_string( ) ] ,
@@ -84,8 +83,7 @@ async fn serial_test_existing_command(ctx: &mut MainContext) {
84
83
#[ test_context( MainContext ) ]
85
84
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
86
85
#[ serial_test:: serial]
87
- async fn serial_test_existing_command_with_args ( ctx : & mut MainContext ) {
88
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
86
+ async fn serial_test_existing_command_with_args ( _ctx : & mut MainContext ) {
89
87
run_test ( TestItem {
90
88
name : "existing command with args" . to_string ( ) ,
91
89
args : vec ! [
@@ -105,8 +103,7 @@ async fn serial_test_existing_command_with_args(ctx: &mut MainContext) {
105
103
#[ test_context( MainContext ) ]
106
104
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
107
105
#[ serial_test:: serial]
108
- async fn serial_test_add_an_alias ( ctx : & mut MainContext ) {
109
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
106
+ async fn serial_test_add_an_alias ( _ctx : & mut MainContext ) {
110
107
run_test ( TestItem {
111
108
name : "add an alias" . to_string ( ) ,
112
109
args : vec ! [
@@ -127,8 +124,7 @@ async fn serial_test_add_an_alias(ctx: &mut MainContext) {
127
124
#[ test_context( MainContext ) ]
128
125
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
129
126
#[ serial_test:: serial]
130
- async fn serial_test_add_a_shell_alias ( ctx : & mut MainContext ) {
131
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
127
+ async fn serial_test_add_a_shell_alias ( _ctx : & mut MainContext ) {
132
128
run_test ( TestItem {
133
129
name : "add a shell alias" . to_string ( ) ,
134
130
args : vec ! [
@@ -150,8 +146,7 @@ async fn serial_test_add_a_shell_alias(ctx: &mut MainContext) {
150
146
#[ test_context( MainContext ) ]
151
147
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
152
148
#[ serial_test:: serial]
153
- async fn serial_test_list_our_aliases ( ctx : & mut MainContext ) {
154
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
149
+ async fn serial_test_list_our_aliases ( _ctx : & mut MainContext ) {
155
150
run_test ( TestItem {
156
151
name : "list our aliases" . to_string ( ) ,
157
152
args : vec ! [ "zoo" . to_string( ) , "alias" . to_string( ) , "list" . to_string( ) ] ,
@@ -166,8 +161,7 @@ async fn serial_test_list_our_aliases(ctx: &mut MainContext) {
166
161
#[ test_context( MainContext ) ]
167
162
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
168
163
#[ serial_test:: serial]
169
- async fn serial_test_call_alias ( ctx : & mut MainContext ) {
170
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
164
+ async fn serial_test_call_alias ( _ctx : & mut MainContext ) {
171
165
run_test ( TestItem {
172
166
name : "call alias" . to_string ( ) ,
173
167
args : vec ! [ "zoo" . to_string( ) , "foo" . to_string( ) ] ,
@@ -182,8 +176,7 @@ async fn serial_test_call_alias(ctx: &mut MainContext) {
182
176
#[ test_context( MainContext ) ]
183
177
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
184
178
#[ serial_test:: serial]
185
- async fn serial_test_call_alias_with_different_binary_name ( ctx : & mut MainContext ) {
186
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
179
+ async fn serial_test_call_alias_with_different_binary_name ( _ctx : & mut MainContext ) {
187
180
run_test ( TestItem {
188
181
name : "call alias with different binary name" . to_string ( ) ,
189
182
args : vec ! [ "/bin/thing/zoo" . to_string( ) , "foo" . to_string( ) ] ,
@@ -198,8 +191,7 @@ async fn serial_test_call_alias_with_different_binary_name(ctx: &mut MainContext
198
191
#[ test_context( MainContext ) ]
199
192
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
200
193
#[ serial_test:: serial]
201
- async fn serial_test_call_shell_alias ( ctx : & mut MainContext ) {
202
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
194
+ async fn serial_test_call_shell_alias ( _ctx : & mut MainContext ) {
203
195
run_test ( TestItem {
204
196
name : "call shell alias" . to_string ( ) ,
205
197
args : vec ! [ "zoo" . to_string( ) , "bar" . to_string( ) ] ,
@@ -214,9 +206,8 @@ async fn serial_test_call_shell_alias(ctx: &mut MainContext) {
214
206
#[ test_context( MainContext ) ]
215
207
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 3 ) ]
216
208
#[ serial_test:: serial]
217
- async fn serial_test_version ( ctx : & mut MainContext ) {
209
+ async fn serial_test_version ( _ctx : & mut MainContext ) {
218
210
let version = clap:: crate_version!( ) ;
219
- login ( ctx. test_host . clone ( ) , ctx. test_token . clone ( ) ) . await ;
220
211
run_test ( TestItem {
221
212
name : "version" . to_string ( ) ,
222
213
args : vec ! [ "zoo" . to_string( ) , "version" . to_string( ) ] ,
0 commit comments