[CI] Remove --detectOpenHandles to parallelize Jest tests again (#67413)

This commit is contained in:
Brian Seeders 2020-05-27 12:44:41 -04:00 committed by GitHub
parent 69980a6d7e
commit 2c86a22582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ module.exports = function (grunt) {
function runJest(jestScript) {
const serverCmd = {
cmd: 'node',
args: [jestScript, '--ci', '--detectOpenHandles'],
args: [jestScript, '--ci'],
opts: { stdio: 'inherit' },
};

View file

@ -11,7 +11,7 @@ if [[ -z "$CODE_COVERAGE" ]] ; then
echo " -> Running jest tests"
cd "$XPACK_DIR"
checks-reporter-with-killswitch "X-Pack Jest" node --max-old-space-size=6144 scripts/jest --ci --verbose --detectOpenHandles
checks-reporter-with-killswitch "X-Pack Jest" node --max-old-space-size=6144 scripts/jest --ci --verbose
echo ""
echo ""
@ -32,7 +32,7 @@ else
# build runtime for canvas
echo "NODE_ENV=$NODE_ENV"
node ./plugins/canvas/scripts/shareable_runtime
node --max-old-space-size=6144 scripts/jest --ci --verbose --detectOpenHandles --coverage
node --max-old-space-size=6144 scripts/jest --ci --verbose --coverage
# rename file in order to be unique one
test -f ../target/kibana-coverage/jest/coverage-final.json \
&& mv ../target/kibana-coverage/jest/coverage-final.json \