From 0d5de210017bb0bc547e20fe1661afd86efe19bf Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Wed, 18 Apr 2018 16:58:52 -0400 Subject: [PATCH] Increase timeouts to fix {debug,prod}Only package self-tests. --- tools/tests/package-tests.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/tests/package-tests.js b/tools/tests/package-tests.js index e04346bcad..87694998b5 100644 --- a/tools/tests/package-tests.js +++ b/tools/tests/package-tests.js @@ -193,6 +193,7 @@ selftest.define("add debugOnly and prodOnly packages", [], function () { // Add a debugOnly package. It should work during a normal run, but print // nothing in production mode. run = s.run("add", "debug-only"); + run.waitSecs(30); run.match("debug-only"); run.expectExit(0); @@ -201,11 +202,11 @@ selftest.define("add debugOnly and prodOnly packages", [], function () { "process.exit(global.DEBUG_ONLY_LOADED ? 234 : 235)"); run = s.run("--once"); - run.waitSecs(15); + run.waitSecs(30); run.expectExit(234); run = s.run("--once", "--production"); - run.waitSecs(15); + run.waitSecs(30); run.expectExit(235); // Add prod-only package, which sets GLOBAL.PROD_ONLY_LOADED. @@ -218,11 +219,11 @@ selftest.define("add debugOnly and prodOnly packages", [], function () { "process.exit(global.PROD_ONLY_LOADED ? 234 : 235)"); run = s.run("--once"); - run.waitSecs(15); + run.waitSecs(30); run.expectExit(235); run = s.run("--once", "--production"); - run.waitSecs(15); + run.waitSecs(30); run.expectExit(234); });