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"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@@ -379,8 +378,8 @@ func TestPushNotifications(t *testing.T) {
|
|||||||
if len(movingNotification) != 4 {
|
if len(movingNotification) != 4 {
|
||||||
p("[NOTICE] Invalid MOVING notification format: %s", movingNotification)
|
p("[NOTICE] Invalid MOVING notification format: %s", movingNotification)
|
||||||
}
|
}
|
||||||
mNotifTimeS, err := movingNotification[2].(int64)
|
mNotifTimeS, ok := movingNotification[2].(int64)
|
||||||
if err != nil {
|
if !ok {
|
||||||
p("[NOTICE] Invalid timeS in MOVING notification: %s", movingNotification)
|
p("[NOTICE] Invalid timeS in MOVING notification: %s", movingNotification)
|
||||||
}
|
}
|
||||||
// expect timeS to be less than 15
|
// expect timeS to be less than 15
|
||||||
|
Reference in New Issue
Block a user