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 authored and nreese committed Nov 1, 2024
1 parent f3c841d commit 69709df
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 69709df

Please sign in to comment.