test: decrease duration of test-cli-syntax · nodejs/node@1671fe4 · GitHub
Skip to content

Commit 1671fe4

Browse files
evanlucasaddaleax
authored andcommitted
test: decrease duration of test-cli-syntax
Previously, test/parallel/test-cli-syntax.js was spawning a lot of child processes, but using spawnSync, which made the test run each child process serially. This switches most of the test cases to use exec so that they are asynchronous. Locally, the test went from > 5 seconds to under 2 seconds. PR-URL: #14187 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent 3fcc7e6 commit 1671fe4

1 file changed

Lines changed: 36 additions & 31 deletions

File tree

test/parallel/test-cli-syntax.js

Lines changed: 36 additions & 31 deletions

0 commit comments

Comments
 (0)