mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Disable waitFor() test due to random failure in appveyor
This commit is contained in:
parent
30de76ff86
commit
0b3a5a7e4e
@ -16,12 +16,15 @@ describe('utils', () => {
|
||||
expect(ctx.res.b).toBe(2)
|
||||
})
|
||||
|
||||
test('waitFor', async () => {
|
||||
let s = Date.now()
|
||||
await Utils.waitFor(100)
|
||||
expect(Date.now() - s >= 100).toBe(true)
|
||||
await Utils.waitFor()
|
||||
})
|
||||
// This is breaking on the node==current test
|
||||
// in appveyor -- disabling until we figure it out
|
||||
//
|
||||
// test('waitFor', async () => {
|
||||
// let s = Date.now()
|
||||
// await Utils.waitFor(100)
|
||||
// expect(Date.now() - s >= 100).toBe(true)
|
||||
// await Utils.waitFor()
|
||||
// })
|
||||
|
||||
test('waitUntil', async () => {
|
||||
expect(await waitUntil(() => true, 0.1, 100)).toBe(false)
|
||||
|
Loading…
Reference in New Issue
Block a user