2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-12-25 23:32:17 +08:00

Fix build

This commit is contained in:
Ken Hibino 2021-12-19 07:06:37 -08:00
parent 5f20edcbd1
commit 8dfabfccb3

View File

@ -8,6 +8,7 @@ import (
"context"
"encoding/json"
"flag"
"math"
"strconv"
"strings"
"sync"
@ -846,8 +847,8 @@ func TestDoneWithMaxCounter(t *testing.T) {
processedTotalKey := base.ProcessedTotalKey(msg.Queue)
ctx := context.Background()
if err := r.client.Set(ctx, processedTotalKey, base.MaxInt64, 0).Err(); err != nil {
t.Fatalf("Redis command failed: SET %q %v", processedTotalKey, base.MaxInt64)
if err := r.client.Set(ctx, processedTotalKey, math.MaxInt64, 0).Err(); err != nil {
t.Fatalf("Redis command failed: SET %q %v", processedTotalKey, math.MaxInt64)
}
if err := r.Done(msg); err != nil {