Alerting: Retry flaky notification preview test (#97936)

Retry flaky notification preview test
This commit is contained in:
Tom Ratcliffe 2024-12-13 14:14:24 +00:00 committed by GitHub
parent 6d21eddf13
commit 4c42fda2ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,6 +121,8 @@ describe.each([
false,
])('NotificationPreview with alertingApiServer=%p', (apiServerEnabled) => {
apiServerEnabled ? testWithFeatureToggles(['alertingApiServer']) : testWithFeatureToggles([]);
jest.retryTimes(2);
it('should render notification preview without alert manager label, when having only one alert manager configured to receive alerts', async () => {
mockOneAlertManager();
mockPreviewApiResponse(server, [{ labels: [{ tomato: 'red', avocate: 'green' }] }]);