From 709a12e38f07a06f3b528f8a7c880caf2a08af07 Mon Sep 17 00:00:00 2001 From: Lewis McQuillan Date: Mon, 2 Sep 2019 17:03:05 +0100 Subject: [PATCH] test(realtime-updates.spec.ts): increased timeout to 10s for document update test --- test/functional/realtime-updates.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/realtime-updates.spec.ts b/test/functional/realtime-updates.spec.ts index 2e12799..6bd83ed 100644 --- a/test/functional/realtime-updates.spec.ts +++ b/test/functional/realtime-updates.spec.ts @@ -37,7 +37,8 @@ describe('[functional] realtime updates', (): void => { expect(result.ref).to.eql(result.doc.ref); expect(result.metadata).to.not.be.null.and.not.be.undefined; }); - it('should receive updates', async (): Promise => { + it('should receive updates', async function(): Promise { + this.timeout(10000); const result: IDocumentSnapshot = await new Promise(async (resolve): Promise => { let receivedFirst = false documentListener = post.ref.onSnapshot((snapshot): void => { @@ -54,7 +55,7 @@ describe('[functional] realtime updates', (): void => { if (updatedPost) { post = updatedPost; } - }, 100); + }, 1000); }); expect(result.doc.id).to.eql(post.id); expect(result.exists).to.equal(true);