Skip to content

Commit

Permalink
test: prevent from flap
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMatsko committed Dec 13, 2024
1 parent 57b699f commit 0a1fc71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notifier/alive_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -108,5 +107,6 @@ func TestAliveWatcher_Start(t *testing.T) {

time.Sleep(time.Second * 3)
cancel()
time.Sleep(time.Millisecond)
})
}

0 comments on commit 0a1fc71

Please sign in to comment.