From 8105f0647aa2040c47082bc023925e317fd3ccc7 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 23 Jul 2020 16:49:53 +1000 Subject: [PATCH] make a few unit tests quicker by polling more aggressively on results --- ts/session/utils/Promise.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/session/utils/Promise.ts b/ts/session/utils/Promise.ts index 2ce92a534..9019ff282 100644 --- a/ts/session/utils/Promise.ts +++ b/ts/session/utils/Promise.ts @@ -52,7 +52,7 @@ export async function poll( ): Promise { const defaults: PollOptions = { timeout: 2000, - interval: 1000, + interval: 100, }; const { timeout, interval } = { @@ -113,6 +113,7 @@ export async function waitUntil( }, { timeout, + interval: timeout / 20, } ); }