Skip to content

Commit

Permalink
Use non-default slow threshold (ampproject#21299)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvializ authored and Noran Azmy committed Mar 22, 2019
1 parent 6ad1cb5 commit 70ad795
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-system/tasks/e2e/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const {execOrDie, execScriptAsync} = require('../../exec');
const HOST = 'localhost';
const PORT = 8000;
const WEBSERVER_TIMEOUT_RETRIES = 10;
const SLOW_TEST_THRESHOLD_MS = 2500;

let webServerProcess_;

Expand Down Expand Up @@ -106,6 +107,10 @@ async function e2e() {
// start up web server
await launchWebServer_();

// e2e tests have a different standard for when a test is too slow,
// so we set a non-default threshold.
mocha.slow(SLOW_TEST_THRESHOLD_MS);

// run tests
mocha.run(failures => {
// end web server
Expand Down

0 comments on commit 70ad795

Please sign in to comment.