test: only ignore waitfor test in appveyor (#3640)

This commit is contained in:
Clark Du 2018-08-06 18:03:24 +01:00 committed by GitHub
parent 4f3f935d05
commit c89af3c77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,15 +16,12 @@ describe('utils', () => {
expect(ctx.res.b).toBe(2) expect(ctx.res.b).toBe(2)
}) })
// This is breaking on the node==current test test.skip.appveyor('waitFor', async () => {
// in appveyor -- disabling until we figure it out let s = Date.now()
// await Utils.waitFor(100)
// test('waitFor', async () => { expect(Date.now() - s >= 100).toBe(true)
// let s = Date.now() await Utils.waitFor()
// await Utils.waitFor(100) })
// expect(Date.now() - s >= 100).toBe(true)
// await Utils.waitFor()
// })
test('waitUntil', async () => { test('waitUntil', async () => {
expect(await waitUntil(() => true, 0.1, 100)).toBe(false) expect(await waitUntil(() => true, 0.1, 100)).toBe(false)