Skip to content

Commit

Permalink
Disable parallel for spec tests (#4776)
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Nov 26, 2022
1 parent e7eba90 commit a3f479e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/beacon-node/.mocharc.spec.cjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@

module.exports = {
colors: true,
require: ["./test/setupPreset.ts", "./test/setup.ts"],
"node-option": [
"loader=ts-node/esm"
],
"node-option": ["loader=ts-node/esm"],
timeout: 60_000,
// Disable parallel locally for easier debugging
parallel: Boolean(process.env.CI),
// By default, Mocha’s maximum job count is n – 1, where n is the number of CPU cores
// In Github actions the runner has only two cores, so force it to use two
jobs: 2,
// Do not run tests through workers, it's not proven to be faster than with `jobs: 2`
parallel: false,
};

0 comments on commit a3f479e

Please sign in to comment.