Alerting: Add retry and bump timeout on flakey policies test (#97208)

Add retry and bump timeout on flakey policies test
This commit is contained in:
Tom Ratcliffe 2024-11-29 17:00:03 +00:00 committed by GitHub
parent 174e9ae193
commit 6d2828f267
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -294,6 +294,7 @@ describe.each([
});
it('allows user to reload and update policies if its been changed by another user', async () => {
jest.retryTimes(2);
const { user } = renderNotificationPolicies();
await getRootRoute();
@ -317,7 +318,8 @@ describe.each([
await openDefaultPolicyEditModal();
await user.click(await screen.findByRole('button', { name: /update default policy/i }));
expect(await screen.findByText(/updated notification policies/i)).toBeInTheDocument();
});
// TODO: Check if test flakiness/length can be improved
}, 60000);
it('Should be able to delete an empty route', async () => {
const defaultConfig: AlertManagerCortexConfig = {