client.Enqueue - prevent empty task's typename

This commit is contained in:
Luqqk
2021-08-01 16:24:45 +02:00
committed by Ken Hibino
parent 73f930313c
commit 4bce28d677
2 changed files with 11 additions and 0 deletions

View File

@@ -585,6 +585,11 @@ func TestClientEnqueueError(t *testing.T) {
Queue(""),
},
},
{
desc: "With empty task typename",
task: NewTask("", h.JSON(map[string]interface{}{})),
opts: []Option{},
},
}
for _, tc := range tests {