Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
test(realtime-updates.spec.ts): increased timeout to 10s for document…
Browse files Browse the repository at this point in the history
… update test
  • Loading branch information
lmcq committed Sep 2, 2019
1 parent 663cadc commit 709a12e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/functional/realtime-updates.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> => {
it('should receive updates', async function(): Promise<void> {
this.timeout(10000);
const result: IDocumentSnapshot<Post> = await new Promise(async (resolve): Promise<void> => {
let receivedFirst = false
documentListener = post.ref.onSnapshot((snapshot): void => {
Expand All @@ -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);
Expand Down

0 comments on commit 709a12e

Please sign in to comment.