2
0
mirror of https://github.com/hibiken/asynq.git synced 2026-07-28 07:35:36 +08:00

Drop GT option from RDB.ExtendLease

GT option in ZAdd is supported for redis v6.2.0 or above.
This Change fixes redis version compatibility (currently v4.0+)
This commit is contained in:
Ken Hibino
2022-02-20 05:40:09 -08:00
parent cabf8d3627
commit 7e5efb0e30
2 changed files with 4 additions and 19 deletions

View File

@@ -2353,22 +2353,6 @@ func TestExtendLease(t *testing.T) {
},
},
},
{
desc: "Should not add shorten the lease expiration time",
lease: map[string][]base.Z{
"default": {
{Message: t1, Score: now.Add(LeaseDuration).Add(10 * time.Second).Unix()},
},
},
qname: "default",
ids: []string{t1.ID},
wantExpirationTime: now.Add(LeaseDuration),
wantLease: map[string][]base.Z{
"default": {
{Message: t1, Score: now.Add(LeaseDuration).Add(10 * time.Second).Unix()},
},
},
},
}
for _, tc := range tests {