mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
Fix build
This commit is contained in:
parent
5f20edcbd1
commit
8dfabfccb3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user