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 888b5590fb
commit 562506c7ba
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,