From 2dd4d1a387de613720d3304856a7472abcf21913 Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Thu, 4 Feb 2021 17:53:41 +0100 Subject: [PATCH] fix: increase timeouts on tests for mac (#248) --- package.json | 4 ++-- test/browser_test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9b423ca9b..af14cdce0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "test" }, "scripts": { - "test": "npm run test:lib && npm run test:browser", + "test": "npm run test:browser:cleanup && npm run test:lib && npm run test:browser", "bundle": "browserify \"lib/browser.js\" | uglifyjs > \"dist/bundle.js\"", "docs": "jsdoc2md \"lib/parser.js\" -f \"lib/**/*.js\" > API.md", "types": "jsdoc -t \"node_modules/tsd-jsdoc/dist\" -r lib -d \"./\" && node \"./scripts/fix-ts-types.js\"", @@ -18,7 +18,7 @@ "get:name": "echo $npm_package_name", "lint": "eslint --max-warnings 0 --config \".eslintrc\" \".\"", "test:lib": "nyc --reporter=html --reporter=text mocha --exclude \"test/browser_test.js\" --recursive", - "test:browser": "npm run test:browser:cleanup && npm run bundle && cp \"dist/bundle.js\" \"test/sample_browser/\" && start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha --timeout 6000 test/browser_test.js\" && npm run test:browser:cleanup", + "test:browser": "npm run test:browser:cleanup && npm run bundle && cp \"dist/bundle.js\" \"test/sample_browser/\" && start-server-and-test \"http-server test/sample_browser --cors -s\" 8080 \"mocha --timeout 20000 test/browser_test.js\" && npm run test:browser:cleanup", "test:browser:cleanup": "rimraf \"test/sample_browser/bundle.js\"", "generate:readme:toc": "markdown-toc -i \"README.md\"", "generate:assets": "npm run docs && npm run generate:readme:toc && npm run types && npm run bundle", diff --git a/test/browser_test.js b/test/browser_test.js index bc1ff5c66..1a00823e3 100644 --- a/test/browser_test.js +++ b/test/browser_test.js @@ -33,7 +33,7 @@ describe('Check Parser in the browser', function() { } catch (e) { throw new Error(e); } - }).timeout(3000); + }).timeout(5000); it('parsing spec from remote should complete successfully', async function() { try {