Skip to content

Commit 3699acf

Browse files
committed
fix tests
1 parent 93ef6cc commit 3699acf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

maintnotifications/e2e/scenario_push_notifications_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"fmt"
66
"os"
7-
"strconv"
87
"strings"
98
"testing"
109
"time"
@@ -379,8 +378,8 @@ func TestPushNotifications(t *testing.T) {
379378
if len(movingNotification) != 4 {
380379
p("[NOTICE] Invalid MOVING notification format: %s", movingNotification)
381380
}
382-
mNotifTimeS, err := movingNotification[2].(int64)
383-
if err != nil {
381+
mNotifTimeS, ok := movingNotification[2].(int64)
382+
if !ok {
384383
p("[NOTICE] Invalid timeS in MOVING notification: %s", movingNotification)
385384
}
386385
// expect timeS to be less than 15

0 commit comments

Comments
 (0)