Răsfoiți Sursa

Merge pull request #1554 from sharelatex/ew-build-tests

Bump timeout for unit tests

GitOrigin-RevId: 2354d4620d1c91e99c80612659a43509b54cdbc9
Henry Oswald 7 ani în urmă
părinte
comite
e4153ae3e4
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 1
      services/web/docker-compose.ci.yml
  2. 1 0
      services/web/package.json

+ 1 - 1
services/web/docker-compose.ci.yml

@@ -9,7 +9,7 @@ services:
     build: .
     build: .
     image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
     image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER
     user: node
     user: node
-    command: npm run test:unit
+    command: npm run test:unit:ci
 
 
   test_acceptance:
   test_acceptance:
     build: .
     build: .

+ 1 - 0
services/web/package.json

@@ -12,6 +12,7 @@
   "scripts": {
   "scripts": {
     "test:acceptance:run_dir": "mocha --recursive --reporter spec --timeout 15000 --exit --grep=$MOCHA_GREP $@",
     "test:acceptance:run_dir": "mocha --recursive --reporter spec --timeout 15000 --exit --grep=$MOCHA_GREP $@",
     "test:unit": "npm -q run compile:app && bin/unit_test --grep=$MOCHA_GREP $@",
     "test:unit": "npm -q run compile:app && bin/unit_test --grep=$MOCHA_GREP $@",
+    "test:unit:ci": "bin/unit_test --timeout 10000",
     "test:unit:app": "npm -q run compile:app && bin/unit_test_app $@",
     "test:unit:app": "npm -q run compile:app && bin/unit_test_app $@",
     "test:frontend": "karma start",
     "test:frontend": "karma start",
     "compile": "make compile",
     "compile": "make compile",