From 0a1fc71e6ae8cf46b1a33f5c4bee65696b5b941d Mon Sep 17 00:00:00 2001 From: AleksandrMatsko Date: Fri, 13 Dec 2024 12:01:55 +0700 Subject: [PATCH] test: prevent from flap --- notifier/alive_watcher_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifier/alive_watcher_test.go b/notifier/alive_watcher_test.go index 0fce9a874..3ab25818b 100644 --- a/notifier/alive_watcher_test.go +++ b/notifier/alive_watcher_test.go @@ -97,7 +97,6 @@ func TestAliveWatcher_Start(t *testing.T) { Interface("check_timeout_seconds", testCheckNotifierStateTimeout.Seconds()). Return(eventsBuilder) eventsBuilder.EXPECT().Msg("Moira Notifier alive watcher started") - eventsBuilder.EXPECT().Msg("Moira Notifier alive watcher stopped") dataBase.EXPECT().GetNotifierState().Return(moira.SelfStateOK, nil).AnyTimes() @@ -108,5 +107,6 @@ func TestAliveWatcher_Start(t *testing.T) { time.Sleep(time.Second * 3) cancel() + time.Sleep(time.Millisecond) }) }