File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ use colored::*;
88use std:: path:: Path ;
99use walkdir:: WalkDir ;
1010
11+ #[ cfg( test) ]
12+ use serial_test:: serial;
13+
1114/// Init command for creating config from discovered repositories
1215pub struct InitCommand {
1316 pub output : String ,
@@ -160,6 +163,7 @@ mod tests {
160163 use tempfile:: TempDir ;
161164
162165 #[ tokio:: test]
166+ #[ serial]
163167 async fn test_init_command_no_repositories_found ( ) {
164168 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
165169 let original_dir = std:: env:: current_dir ( ) . unwrap ( ) ;
@@ -242,6 +246,7 @@ mod tests {
242246 }
243247
244248 #[ tokio:: test]
249+ #[ serial]
245250 async fn test_init_command_supplement_with_existing_config ( ) {
246251 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
247252 let output_path = temp_dir. path ( ) . join ( "existing-config.yaml" ) ;
@@ -291,6 +296,7 @@ mod tests {
291296 }
292297
293298 #[ tokio:: test]
299+ #[ serial]
294300 async fn test_init_command_supplement_without_existing_config ( ) {
295301 let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
296302 let output_path = temp_dir. path ( ) . join ( "new-config.yaml" ) ;
You can’t perform that action at this time.
0 commit comments