From 92c4228014d1753cf48f485b792daff0964da0f7 Mon Sep 17 00:00:00 2001 From: nd0ut Date: Mon, 30 Oct 2023 15:13:07 +0300 Subject: [PATCH] chore(rest-client): use `isReadyPoll` inside tests --- packages/rest-client/src/tools/addonJobPoller.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/rest-client/src/tools/addonJobPoller.test.ts b/packages/rest-client/src/tools/addonJobPoller.test.ts index ba7315307..ef158b1a9 100644 --- a/packages/rest-client/src/tools/addonJobPoller.test.ts +++ b/packages/rest-client/src/tools/addonJobPoller.test.ts @@ -1,6 +1,6 @@ import { jest } from '@jest/globals' import { ADDONS_UUID } from '../../test/fixtures' -import { testSettings } from '../../test/helpers' +import { testSettings, uploadClient } from '../../test/helpers' import { copyFileToLocalStorage } from '../api/file/copyFileToLocalStorage' import { AddonExecutionStatus } from '../types/AddonExecutionStatus' import { AddonName } from '../types/AddonName' @@ -15,6 +15,8 @@ describe('addonJobPoller', () => { testSettings ) + await uploadClient.isReadyPoll(copy.result.uuid, testSettings) + const result = await addonJobPoller( { addonName: AddonName.UC_CLAMAV_VIRUS_SCAN,