2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-22 09:56:12 +08:00

Fix client to return error when nil task is passed

This commit is contained in:
Ken Hibino
2022-03-10 15:59:58 -08:00
parent 167c8678f5
commit 7860506e1e
3 changed files with 62 additions and 0 deletions

View File

@@ -857,6 +857,11 @@ func TestClientEnqueueError(t *testing.T) {
task *Task
opts []Option
}{
{
desc: "With nil task",
task: nil,
opts: []Option{},
},
{
desc: "With empty queue name",
task: task,