From 87b7e1157e570ef4b725fe925e6c975e01a5a8d4 Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Tue, 7 Feb 2017 11:27:43 -0800 Subject: [PATCH] build: longer timeouts for webpack on travis --- tests/e2e/tests/build/rebuild-css-change.ts | 4 ++-- tests/e2e/tests/build/rebuild.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/tests/build/rebuild-css-change.ts b/tests/e2e/tests/build/rebuild-css-change.ts index 8e8a9ce1fdfd..666334ded735 100644 --- a/tests/e2e/tests/build/rebuild-css-change.ts +++ b/tests/e2e/tests/build/rebuild-css-change.ts @@ -17,10 +17,10 @@ export default function() { return silentExecAndWaitForOutputToMatch('ng', ['serve'], webpackGoodRegEx) // Should trigger a rebuild. .then(() => exec('touch', 'src/main.ts')) - .then(() => waitForAnyProcessOutputToMatch(webpackBadRegEx, 1000)) + .then(() => waitForAnyProcessOutputToMatch(webpackBadRegEx, 5000)) .then(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000)) .then(() => appendToFile('src/app/app.component.css', ':host { color: blue; }')) - .then(() => waitForAnyProcessOutputToMatch(webpackBadRegEx, 1000)) + .then(() => waitForAnyProcessOutputToMatch(webpackBadRegEx, 5000)) .then(() => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000)) .then(() => killAllProcesses(), (err: any) => { killAllProcesses(); diff --git a/tests/e2e/tests/build/rebuild.ts b/tests/e2e/tests/build/rebuild.ts index c2cee3f0b572..a26385cb5934 100644 --- a/tests/e2e/tests/build/rebuild.ts +++ b/tests/e2e/tests/build/rebuild.ts @@ -22,7 +22,7 @@ export default function() { // Should trigger a rebuild. .then(() => exec('touch', 'src/main.ts')) .then(() => waitForAnyProcessOutputToMatch( - /webpack: bundle is now INVALID|webpack: Compiling.../, 1000)) + /webpack: bundle is now INVALID|webpack: Compiling.../, 5000)) .then(() => waitForAnyProcessOutputToMatch( /webpack: bundle is now VALID|webpack: Compiled successfully./, 5000)) // Count the bundles. @@ -61,7 +61,7 @@ export default function() { `)) // Should trigger a rebuild with a new bundle. .then(() => waitForAnyProcessOutputToMatch( - /webpack: bundle is now INVALID|webpack: Compiling.../, 1000)) + /webpack: bundle is now INVALID|webpack: Compiling.../, 5000)) .then(() => waitForAnyProcessOutputToMatch( /webpack: bundle is now VALID|webpack: Compiled successfully./, 5000)) // Count the bundles.