mirror of
https://github.com/redis/go-redis.git
synced 2025-10-20 09:52:25 +03:00
fix tests
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user