2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-19 15:08:55 +08:00

Minor fixes

This commit is contained in:
Ken Hibino
2021-05-09 19:20:54 -07:00
parent d98ecdebb4
commit 8117ce8972
3 changed files with 3 additions and 11 deletions

View File

@@ -95,9 +95,9 @@ if not ok then
end
redis.call("HSET", KEYS[2],
"msg", ARGV[3],
"state", "pending",
"state", "pending",
"timeout", ARGV[4],
"deadline", ARGV[5])
"deadline", ARGV[5])
redis.call("LPUSH", KEYS[3], ARGV[1])
return 1
`)

View File

@@ -112,7 +112,7 @@ func TestEnqueue(t *testing.T) {
}
deadline := r.client.HGet(taskKey, "deadline").Val() // "deadline" field
if want := strconv.Itoa(int(tc.msg.Deadline)); deadline != want {
t.Errorf("deadline field under task-ke is set to %v, want %v", deadline, want)
t.Errorf("deadline field under task-key is set to %v, want %v", deadline, want)
}
// Check queue is in the AllQueues set.