From b696740028088401d175404a7c13e8971f2460bf Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 5 Nov 2018 09:44:10 +0100 Subject: [PATCH] all unit tests will be retried up to 4 times --- frontend-js/package.json | 2 +- frontend-js/src/test/js/mocha-config.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend-js/package.json b/frontend-js/package.json index ea8d17aca1..29db5bf5da 100644 --- a/frontend-js/package.json +++ b/frontend-js/package.json @@ -13,7 +13,7 @@ "deploy": "node scripts/deploy.js", "refresh-mock-requests": "node scripts/refresh_mock_requests.js", "lint": "jshint src/.", - "test": "istanbul cover node_modules/mocha/bin/_mocha -- --recursive src/test/js" + "test": "istanbul cover node_modules/mocha/bin/_mocha -- --recursive src/test/js --retries 4" }, "author": "Piotr Gawron", "devDependencies": { diff --git a/frontend-js/src/test/js/mocha-config.js b/frontend-js/src/test/js/mocha-config.js index 13ebe85b3e..c4bc6e3a92 100644 --- a/frontend-js/src/test/js/mocha-config.js +++ b/frontend-js/src/test/js/mocha-config.js @@ -196,11 +196,10 @@ before(function () { mockBootstrap(); - // Retry all tests in this suite up to 4 times - this.retries(4); }); beforeEach(function () { + window.onresize = undefined; logger.flushBuffer(); -- GitLab