test: adjust starting timeout to 20s

This commit is contained in:
Clark Du 2018-03-09 10:05:36 +08:00
parent b2d285cd81
commit 0aff524d3b

View File

@ -52,9 +52,9 @@ test.serial('nuxt start', async t => {
exitCode = code
})
// Give the process max 10s to start
// Give the process max 20s to start
let iterator = 0
while (!stdout.includes('OPEN') && iterator < 40) {
while (!stdout.includes('OPEN') && iterator < 80) {
await Utils.waitFor(250)
iterator++
}