@@ -259,8 +259,8 @@ mod tests {
259259 use std:: fs;
260260 use tempfile:: TempDir ;
261261
262- #[ test]
263- fn test_complete_hidden_files_when_starting_with_dot ( ) {
262+ #[ tokio :: test]
263+ async fn test_complete_hidden_files_when_starting_with_dot ( ) {
264264 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
265265 let temp_path = temp_dir. path ( ) ;
266266
@@ -284,8 +284,8 @@ mod tests {
284284 assert ! ( displays. contains( & ".gitignore" ) ) ;
285285 }
286286
287- #[ test]
288- fn test_skip_hidden_files_when_not_starting_with_dot ( ) {
287+ #[ tokio :: test]
288+ async fn test_skip_hidden_files_when_not_starting_with_dot ( ) {
289289 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
290290 let temp_path = temp_dir. path ( ) ;
291291
@@ -308,8 +308,8 @@ mod tests {
308308 assert ! ( displays. len( ) >= 2 ) ; // Should have at least the two visible files
309309 }
310310
311- #[ test]
312- fn test_complete_github_directory ( ) {
311+ #[ tokio :: test]
312+ async fn test_complete_github_directory ( ) {
313313 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
314314 let temp_path = temp_dir. path ( ) ;
315315
@@ -330,8 +330,8 @@ mod tests {
330330 assert_eq ! ( matches[ 0 ] . display, ".github/" ) ;
331331 }
332332
333- #[ test]
334- fn test_complete_all_hidden_with_dot ( ) {
333+ #[ tokio :: test]
334+ async fn test_complete_all_hidden_with_dot ( ) {
335335 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
336336 let temp_path = temp_dir. path ( ) ;
337337
0 commit comments