From d76104fedf077868e35e70b82aec4a072009dcf9 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 28 May 2021 01:56:57 -0400 Subject: [PATCH] Fix flaky TestNotificationChannels (#34831) (#34866) Signed-off-by: Ganesh Vernekar (cherry picked from commit 89262ac64dddb05592edbf50d8bedc0e77872509) Co-authored-by: Ganesh Vernekar <15064823+codesome@users.noreply.github.com> --- pkg/tests/api/alerting/api_notification_channel_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tests/api/alerting/api_notification_channel_test.go b/pkg/tests/api/alerting/api_notification_channel_test.go index f66a0b02fd2..98c516d9891 100644 --- a/pkg/tests/api/alerting/api_notification_channel_test.go +++ b/pkg/tests/api/alerting/api_notification_channel_test.go @@ -106,7 +106,7 @@ func TestNotificationChannels(t *testing.T) { require.Eventually(t, func() bool { return mockChannel.totalNotifications() == len(alertNames) && mockChannel.matchesExpNotifications(expNotifications) - }, 25*time.Second, 1*time.Second) + }, 30*time.Second, 1*time.Second) require.NoError(t, mockChannel.Close()) }