From 178b86e5f856c736253a87163737467fee09ace4 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 14 Feb 2017 22:38:53 +0000 Subject: [PATCH] test: fix race condition on rebuild test --- tests/e2e/tests/build/rebuild.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/e2e/tests/build/rebuild.ts b/tests/e2e/tests/build/rebuild.ts index 686e673940c5..33d64e8a6150 100644 --- a/tests/e2e/tests/build/rebuild.ts +++ b/tests/e2e/tests/build/rebuild.ts @@ -33,16 +33,16 @@ export default function() { // Add a lazy module. .then(() => ng('generate', 'module', 'lazy', '--routing')) // Just wait for the rebuild, otherwise we might be validating the last build. - .then(() => wait(1000)) + .then(() => wait(2000)) .then(() => writeFile('src/app/app.module.ts', ` import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; - + import { AppComponent } from './app.component'; import { RouterModule } from '@angular/router'; - + @NgModule({ declarations: [ AppComponent @@ -60,6 +60,7 @@ export default function() { }) export class AppModule { } `)) + .then(() => wait(2000)) // Should trigger a rebuild with a new bundle. .then(() => waitForAnyProcessOutputToMatch( /webpack: bundle is now VALID|webpack: Compiled successfully./, 10000))