Skip to content

Commit

Permalink
chore: serialize tests to prevent install race (#478)
Browse files Browse the repository at this point in the history
Previously, running the npm test script in CI would sometimes result in multiple
test processes all trying to install Syft at the same time, and one would fail
with "spawn: ETXTBSY". Instead, run all tests in series.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed Jul 10, 2024
1 parent f3253ca commit f4035cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"package:download-action": "ncc build src/attachReleaseAssets.ts -o dist/attachReleaseAssets",
"package:release-action": "ncc build src/downloadSyft.ts -o dist/downloadSyft",
"post-package:fix-line-endings": "eolConverter 'dist/**/*.js'",
"test": "jest --collect-coverage",
"test": "jest --collect-coverage --runInBand",
"test:update-snapshots": "jest --updateSnapshot",
"all": "npm run build && npm run format && npm run lint && npm run package && npm test",
"prepare": "husky install",
Expand Down

0 comments on commit f4035cd

Please sign in to comment.