File tree 1 file changed +10
-10
lines changed
simple-git/test/integration 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,16 @@ describe('timeout', () => {
32
32
33
33
const repos = await Promise . all ( 'abcdef' . split ( '' ) . map ( ( p ) => context . dir ( p ) ) ) ;
34
34
35
- await Promise . all (
36
- repos . map ( ( baseDir ) => {
37
- const git = newSimpleGit ( { baseDir, abort } ) ;
38
- if ( baseDir . endsWith ( 'a' ) ) {
39
- return promiseError ( git . init ( ) . then ( ( ) => controller . abort ( ) ) ) ;
40
- }
41
-
42
- return promiseError ( git . clone ( upstream , baseDir ) ) ;
43
- } )
44
- ) ;
35
+ repos . map ( ( baseDir ) => {
36
+ const git = newSimpleGit ( { baseDir , abort } ) ;
37
+ if ( baseDir . endsWith ( 'a' ) ) {
38
+ return promiseError ( git . init ( ) ) ;
39
+ }
40
+ return promiseError ( git . clone ( upstream , baseDir ) ) ;
41
+ } ) ;
42
+
43
+ await wait ( 0 ) ;
44
+ controller . abort ( ) ;
45
45
46
46
const results = await Promise . all (
47
47
repos . map ( ( baseDir ) => newSimpleGit ( baseDir ) . checkIsRepo ( ) )
You can’t perform that action at this time.
0 commit comments