mirror of
https://github.com/hibiken/asynq.git
synced 2025-10-20 21:26:14 +08:00
Fix build
This commit is contained in:
@@ -2598,7 +2598,7 @@ func TestInspectorSchedulerEntries(t *testing.T) {
|
||||
{
|
||||
Spec: "@every 20m",
|
||||
Type: "bar",
|
||||
Payload: h.KV(map[string]interface{}{"fiz": "baz"}),
|
||||
Payload: h.JSON(map[string]interface{}{"fiz": "baz"}),
|
||||
Opts: []string{`Queue("bar")`, `MaxRetry(20)`},
|
||||
Next: now.Add(1 * time.Minute),
|
||||
Prev: now.Add(-19 * time.Minute),
|
||||
@@ -2614,7 +2614,7 @@ func TestInspectorSchedulerEntries(t *testing.T) {
|
||||
},
|
||||
{
|
||||
Spec: "@every 20m",
|
||||
Task: asynq.NewTask("bar", h.KV(map[string]interface{}{"fiz": "baz"})),
|
||||
Task: asynq.NewTask("bar", h.JSON(map[string]interface{}{"fiz": "baz"})),
|
||||
Opts: []asynq.Option{asynq.Queue("bar"), asynq.MaxRetry(20)},
|
||||
Next: now.Add(1 * time.Minute),
|
||||
Prev: now.Add(-19 * time.Minute),
|
||||
|
Reference in New Issue
Block a user