feat: add task command to client and Title method to Task for tasks queue managing, #157
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
// helper to create a simple Task with integer payload
|
||||
func newTask(id string) *queue.Task[int] {
|
||||
return queue.NewTask(context.Background(), id, 0)
|
||||
return queue.NewTask(context.Background(), id, "testing", 0)
|
||||
}
|
||||
|
||||
func TestAddAndLength(t *testing.T) {
|
||||
@@ -103,4 +103,4 @@ func TestConcurrencySafety(t *testing.T) {
|
||||
}
|
||||
}()
|
||||
wg.Wait()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user