From b8eed46b2993ff7bd740f20afbff0e03ff93ee02 Mon Sep 17 00:00:00 2001 From: Exulansis Date: Sat, 21 Sep 2019 21:25:21 +0200 Subject: [PATCH] fix(ci): correctly exit after mocha tests are done. Lowered CI params for block time and requests --- .github/workflows/nodejs.yml | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index eccdcca..9a96415 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,5 +24,5 @@ jobs: yarn test env: CI: true - BLOCK_TIME: 1 - REQUESTS: 500 + BLOCK_TIME: 0.5 + REQUESTS: 320 diff --git a/package.json b/package.json index 5b1f2f2..a14f054 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "start": "ts-node ./ts/server.ts", "build": "rm -rf ./js; tsc -p ./tsconfig.json", - "test": "mocha --opts ./mocha.opts ./tests/index.ts" + "test": "mocha --opts ./mocha.opts ./tests/index.ts --exit" }, "husky": { "hooks": {