Skip to content

Commit 51864e8

Browse files
committed
test: fix race condition on rebuild test
Close #4703
1 parent 82b9715 commit 51864e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/e2e/tests/build/rebuild.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ export default function() {
3333
// Add a lazy module.
3434
.then(() => ng('generate', 'module', 'lazy', '--routing'))
3535
// Just wait for the rebuild, otherwise we might be validating the last build.
36-
.then(() => wait(1000))
36+
.then(() => wait(2000))
3737
.then(() => writeFile('src/app/app.module.ts', `
3838
import { BrowserModule } from '@angular/platform-browser';
3939
import { NgModule } from '@angular/core';
4040
import { FormsModule } from '@angular/forms';
4141
import { HttpModule } from '@angular/http';
42-
42+
4343
import { AppComponent } from './app.component';
4444
import { RouterModule } from '@angular/router';
45-
45+
4646
@NgModule({
4747
declarations: [
4848
AppComponent
@@ -60,6 +60,7 @@ export default function() {
6060
})
6161
export class AppModule { }
6262
`))
63+
.then(() => wait(2000))
6364
// Should trigger a rebuild with a new bundle.
6465
.then(() => waitForAnyProcessOutputToMatch(
6566
/webpack: bundle is now VALID|webpack: Compiled successfully./, 10000))

0 commit comments

Comments
 (0)