From 3699acf7042291082c733357cb12e42e68617b5c Mon Sep 17 00:00:00 2001 From: Nedyalko Dyakov Date: Mon, 6 Oct 2025 18:10:27 +0300 Subject: [PATCH] fix tests --- maintnotifications/e2e/scenario_push_notifications_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/maintnotifications/e2e/scenario_push_notifications_test.go b/maintnotifications/e2e/scenario_push_notifications_test.go index a0391a08..ae3e020a 100644 --- a/maintnotifications/e2e/scenario_push_notifications_test.go +++ b/maintnotifications/e2e/scenario_push_notifications_test.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "os" - "strconv" "strings" "testing" "time" @@ -379,8 +378,8 @@ func TestPushNotifications(t *testing.T) { if len(movingNotification) != 4 { p("[NOTICE] Invalid MOVING notification format: %s", movingNotification) } - mNotifTimeS, err := movingNotification[2].(int64) - if err != nil { + mNotifTimeS, ok := movingNotification[2].(int64) + if !ok { p("[NOTICE] Invalid timeS in MOVING notification: %s", movingNotification) } // expect timeS to be less than 15