Skip to content

Commit 44d3b15

Browse files
Run in parallel
1 parent 1f669c0 commit 44d3b15

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

scripts/emulator-testing/firestore-test-runner.ts

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,18 @@ function runTest(port: number, projectId: string, withPersistence: boolean) {
3636
// ready in Firestore emulator.
3737
// Use `prod` to allow test runner's env variable overrides to work.
3838
if (withPersistence) {
39-
return Promise.all(
40-
[spawn('yarn', ['test:node:persistence:prod'], options),
41-
spawn('yarn', ['test:exp:persistence:prod'], options),
42-
spawn('yarn', ['test:lite:prod'], options)]
43-
) ;
39+
return Promise.all([
40+
spawn('yarn', ['test:node:persistence:prod'], options),
41+
spawn('yarn', ['test:exp:persistence:prod'], options),
42+
spawn('yarn', ['test:lite:prod'], options)
43+
]);
4444
} else {
45-
return Promise.all(
46-
[spawn('yarn', ['test:node:prod'], options),
47-
spawn('yarn', ['test:exp:prod'], options),
48-
spawn('yarn', ['test:lite:prod'], options)]
49-
) ;
45+
return Promise.all([
46+
spawn('yarn', ['test:node:prod'], options),
47+
spawn('yarn', ['test:exp:prod'], options),
48+
spawn('yarn', ['test:lite:prod'], options)
49+
]);
5050
}
51-
await spawn('yarn', ['test:lite:prod'], options);
5251
}
5352

5453
async function run(): Promise<void> {

0 commit comments

Comments
 (0)