From 798bbd53203dd86cb54141a42c2cab177305f558 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 19 Jul 2021 13:22:20 +0400 Subject: [PATCH] Increased slow unit tests threshold to 2000ms refs https://github.com/TryGhost/Ghost/commit/20aea8c819997d8fa33a7056959e64f278132d43 refs https://github.com/TryGhost/Ghost/commit/bf587d4055104810513fdf5cd8ed69aea73cc5d5 - The 1000 ms limit was not enough to pass consistently for some slow unit tests. Doubling the previous threshold to be on the safe side of the slow CIs. - We should limit this back down to 1000ms or less during next cleanup! --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9bbd57d79f..3e791eddb6 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "test": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js --timeout=60000", "test:all": "yarn test:unit && yarn test:acceptance && yarn lint", "test:debug": "DEBUG=ghost:test* yarn test", - "test:unit": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/unit' --timeout=1000", + "test:unit": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/unit' --timeout=2000", "test:acceptance": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/api-acceptance' './test/frontend-acceptance' --timeout=10000", "test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000", "test:slow": "yarn test:unit --reporter=mocha-slow-test-reporter && yarn test:acceptance --reporter=mocha-slow-test-reporter",