From 497fd5aa1f228ab1e12eb661686c1dbb95cd3c53 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 19 Aug 2019 20:05:47 +0800 Subject: [PATCH] test: increase waiting time before checking hot updates As the performance of AppVeyor build environment is quite poor. --- .../@vue/cli-plugin-typescript/__tests__/tsPlugin.helper.js | 2 +- packages/@vue/cli-service/__tests__/serve.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@vue/cli-plugin-typescript/__tests__/tsPlugin.helper.js b/packages/@vue/cli-plugin-typescript/__tests__/tsPlugin.helper.js index 043e231b5d..f5b75eb147 100644 --- a/packages/@vue/cli-plugin-typescript/__tests__/tsPlugin.helper.js +++ b/packages/@vue/cli-plugin-typescript/__tests__/tsPlugin.helper.js @@ -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`) } ) diff --git a/packages/@vue/cli-service/__tests__/serve.spec.js b/packages/@vue/cli-service/__tests__/serve.spec.js index dd241076b9..3a285a1255 100644 --- a/packages/@vue/cli-service/__tests__/serve.spec.js +++ b/packages/@vue/cli-service/__tests__/serve.spec.js @@ -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`) } )