Fix flaky TestNotificationChannels (#34831) (#34866)

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
(cherry picked from commit 89262ac64d)

Co-authored-by: Ganesh Vernekar <15064823+codesome@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-28 07:56:57 +02:00
committed by GitHub
co-authored by Ganesh Vernekar
parent fe968a329e
commit d76104fedf
@@ -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())
}