mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-19 13:21:58 +08:00
client.Enqueue - prevent empty task's typename
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user