From 6d2828f2676b2ce581b564dbcaa99bb1da832875 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Fri, 29 Nov 2024 17:00:03 +0000 Subject: [PATCH] Alerting: Add retry and bump timeout on flakey policies test (#97208) Add retry and bump timeout on flakey policies test --- .../features/alerting/unified/NotificationPolicies.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/NotificationPolicies.test.tsx b/public/app/features/alerting/unified/NotificationPolicies.test.tsx index f93e95cb5e2..82da6db5e59 100644 --- a/public/app/features/alerting/unified/NotificationPolicies.test.tsx +++ b/public/app/features/alerting/unified/NotificationPolicies.test.tsx @@ -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 = {