From 70ad795b3caec957c8bb774e84df8e22ef6f29eb Mon Sep 17 00:00:00 2001 From: Carlos Vializ Date: Thu, 7 Mar 2019 11:12:00 -0500 Subject: [PATCH] Use non-default slow threshold (#21299) --- build-system/tasks/e2e/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-system/tasks/e2e/index.js b/build-system/tasks/e2e/index.js index 4de295923ca57..263fb87e97206 100644 --- a/build-system/tasks/e2e/index.js +++ b/build-system/tasks/e2e/index.js @@ -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_; @@ -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