Skip to content

Commit

Permalink
Wait for backfill SOs to be deleted before running the invalidate API…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Oct 31, 2024
1 parent 124aff6 commit 83f3d17
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ export default function apiKeyBackfillTests({ getService }: FtrProviderContext)
expect(e?.event?.outcome).to.eql('success');
}

// wait for all the ad hoc run SO to be deleted
await retry.try(async () => {
try {
// throws when not found
await getAdHocRunSO(backfillId);
throw new Error('should have thrown');
} catch (e) {
expect(e.message).not.to.eql('should have thrown');
}
});

// invoke the invalidate task
await runInvalidateTask();

Expand Down

0 comments on commit 83f3d17

Please sign in to comment.