Skip to content

Commit

Permalink
chore(rest-client): use isReadyPoll inside tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Oct 30, 2023
1 parent 12cf9b1 commit 92c4228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/rest-client/src/tools/addonJobPoller.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -15,6 +15,8 @@ describe('addonJobPoller', () => {
testSettings
)

await uploadClient.isReadyPoll(copy.result.uuid, testSettings)

const result = await addonJobPoller(
{
addonName: AddonName.UC_CLAMAV_VIRUS_SCAN,
Expand Down

0 comments on commit 92c4228

Please sign in to comment.