Skip to content

Commit

Permalink
test: increase waiting time before checking hot updates
Browse files Browse the repository at this point in the history
As the performance of AppVeyor build environment is quite poor.
  • Loading branch information
haoqunjiang committed Aug 19, 2019
1 parent 348e36e commit 497fd5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.assertServe = async (name, options) => {
const file = await project.read(`src/App.vue`)
project.write(`src/App.vue`, file.replace(msg, `Updated`))
await nextUpdate() // wait for child stdout update signal
await sleep(1000) // give the client time to update
await sleep(5000) // give the client time to update
expect(await helpers.getText('h1')).toMatch(`Updated`)
}
)
Expand Down
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/__tests__/serve.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ test('serve', async () => {
const file = await project.read(`src/App.vue`)
project.write(`src/App.vue`, file.replace(msg, `Updated`))
await nextUpdate() // wait for child stdout update signal
await sleep(1000) // give the client time to update
await sleep(5000) // give the client time to update
expect(await helpers.getText('h1')).toMatch(`Updated`)
}
)
Expand Down

0 comments on commit 497fd5a

Please sign in to comment.