From 1c659d27a19301b60d67d2d3f5ccfbc3c1e29d05 Mon Sep 17 00:00:00 2001 From: almostinf Date: Sun, 27 Oct 2024 22:28:10 +0300 Subject: [PATCH] fix linter --- notifier/scheduler_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notifier/scheduler_test.go b/notifier/scheduler_test.go index f2d7666d0..79d3b9681 100644 --- a/notifier/scheduler_test.go +++ b/notifier/scheduler_test.go @@ -127,7 +127,7 @@ func TestThrottling(t *testing.T) { params2.SendFail = 1 // 2015-09-02, 01:00:00 GMT+03:00 - now := time.Unix(1441144800, 0) + testNow := time.Unix(1441144800, 0) testSubscription := subscription testSubscription.ThrottlingEnabled = false testSubscription.Schedule = schedule3 @@ -136,9 +136,9 @@ func TestThrottling(t *testing.T) { expected2.SendFail = 1 // 2015-09-02, 02:00:00 GMT+03:00 expected2.Timestamp = time.Unix(1441148400, 0).Unix() - expected2.CreatedAt = now.Unix() - systemClock.EXPECT().NowUTC().Return(now).Times(1) - dataBase.EXPECT().GetTriggerThrottling(params2.Event.TriggerID).Return(now, now) + expected2.CreatedAt = testNow.Unix() + systemClock.EXPECT().NowUTC().Return(testNow).Times(1) + dataBase.EXPECT().GetTriggerThrottling(params2.Event.TriggerID).Return(testNow, testNow) dataBase.EXPECT().GetSubscription(*params2.Event.SubscriptionID).Return(testSubscription, nil) notification := scheduler.ScheduleNotification(params2, logger)