Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: increase delay on flaky tests #4955

Merged
merged 1 commit into from
Feb 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/e2e/tests/build/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function() {
throw new Error('Expected webpack to create a new chunk, but did not.');
}
})
.then(() => wait(1000))
.then(() => wait(2000))
// Change multiple files and check that all of them are invalidated and recompiled.
.then(() => writeMultipleFiles({
'src/app/app.module.ts': `
Expand All @@ -91,6 +91,7 @@ export default function() {
}))
.then(() => waitForAnyProcessOutputToMatch(
/webpack: bundle is now VALID|webpack: Compiled successfully./, 10000))
.then(() => wait(2000))
.then(() => request('http://localhost:4200/main.bundle.js'))
.then((body) => {
if (!body.match(/\$\$_E2E_GOLDEN_VALUE_1/)) {
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/tests/misc/live-reload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export default function () {
protractorGoodRegEx
))
// Let app run.
.then(_ => wait(1000))
.then(_ => wait(2000))
.then(_ => appendToFile('src/main.ts', 'console.log(1);'))
.then(_ => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000))
.then(_ => wait(1000))
.then(_ => wait(2000))
.then(_ => {
if (liveReloadCount != 2) {
throw new Error(
Expand All @@ -88,10 +88,10 @@ export default function () {
['e2e', '--watch', '--no-live-reload'],
protractorGoodRegEx
))
.then(_ => wait(1000))
.then(_ => wait(2000))
.then(_ => appendToFile('src/main.ts', 'console.log(1);'))
.then(_ => waitForAnyProcessOutputToMatch(webpackGoodRegEx, 5000))
.then(_ => wait(1000))
.then(_ => wait(2000))
.then(_ => {
if (liveReloadCount != 1) {
throw new Error(
Expand Down