Skip to content

Commit f9a97a7

Browse files
authored
test: increase delay on flaky tests (angular#4955)
The rebuild and live-reload tests have been flaky lately. This might fix them. It might also not.
1 parent c57ce2a commit f9a97a7

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

tests/e2e/tests/build/rebuild.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function() {
7676
throw new Error('Expected webpack to create a new chunk, but did not.');
7777
}
7878
})
79-
.then(() => wait(1000))
79+
.then(() => wait(2000))
8080
// Change multiple files and check that all of them are invalidated and recompiled.
8181
.then(() => writeMultipleFiles({
8282
'src/app/app.module.ts': `
@@ -91,6 +91,7 @@ export default function() {
9191
}))
9292
.then(() => waitForAnyProcessOutputToMatch(
9393
/webpack: bundle is now VALID|webpack: Compiled successfully./, 10000))
94+
.then(() => wait(2000))
9495
.then(() => request('http://localhost:4200/main.bundle.js'))
9596
.then((body) => {
9697
if (!body.match(/\$\$_E2E_GOLDEN_VALUE_1/)) {

tests/e2e/tests/misc/live-reload.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ export default function () {
6969
protractorGoodRegEx
7070
))
7171
// Let app run.
72-
.then(_ => wait(1000))
72+
.then(_ => wait(2000))
7373
.then(_ => appendToFile('src/main.ts', 'console.log(1);'))
7474
.then(_ => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000))
75-
.then(_ => wait(1000))
75+
.then(_ => wait(2000))
7676
.then(_ => {
7777
if (liveReloadCount != 2) {
7878
throw new Error(
@@ -88,10 +88,10 @@ export default function () {
8888
['e2e', '--watch', '--no-live-reload'],
8989
protractorGoodRegEx
9090
))
91-
.then(_ => wait(1000))
91+
.then(_ => wait(2000))
9292
.then(_ => appendToFile('src/main.ts', 'console.log(1);'))
9393
.then(_ => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000))
94-
.then(_ => wait(1000))
94+
.then(_ => wait(2000))
9595
.then(_ => {
9696
if (liveReloadCount != 1) {
9797
throw new Error(

0 commit comments

Comments
 (0)