@@ -179,7 +179,7 @@ func TestCustomFuncAndWait(t *testing.T) {
179179 w := NewWorker (
180180 WithAddr (endpoint ),
181181 WithChannel ("test3" ),
182- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
182+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
183183 time .Sleep (500 * time .Millisecond )
184184 return nil
185185 }),
@@ -227,7 +227,7 @@ func TestRedisCluster(t *testing.T) {
227227 WithAddr (strings .Join (hosts , "," )),
228228 WithChannel ("testCluster" ),
229229 WithCluster (),
230- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
230+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
231231 time .Sleep (500 * time .Millisecond )
232232 return nil
233233 }),
@@ -281,7 +281,7 @@ func TestRedisSentinel(t *testing.T) {
281281 WithMasterName ("mymaster" ),
282282 WithChannel ("testSentinel" ),
283283 WithSentinel (),
284- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
284+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
285285 time .Sleep (500 * time .Millisecond )
286286 return nil
287287 }),
@@ -335,7 +335,7 @@ func TestJobReachTimeout(t *testing.T) {
335335 w := NewWorker (
336336 WithAddr (endpoint ),
337337 WithChannel ("timeout" ),
338- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
338+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
339339 for {
340340 select {
341341 case <- ctx .Done ():
@@ -378,7 +378,7 @@ func TestCancelJobAfterShutdown(t *testing.T) {
378378 WithAddr (endpoint ),
379379 WithChannel ("cancel" ),
380380 WithLogger (queue .NewLogger ()),
381- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
381+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
382382 for {
383383 select {
384384 case <- ctx .Done ():
@@ -421,7 +421,7 @@ func TestGoroutineLeak(t *testing.T) {
421421 WithAddr (endpoint ),
422422 WithChannel ("GoroutineLeak" ),
423423 WithLogger (queue .NewEmptyLogger ()),
424- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
424+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
425425 for {
426426 select {
427427 case <- ctx .Done ():
@@ -468,7 +468,7 @@ func TestGoroutinePanic(t *testing.T) {
468468 w := NewWorker (
469469 WithAddr (endpoint ),
470470 WithChannel ("GoroutinePanic" ),
471- WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
471+ WithRunFunc (func (ctx context.Context , m core.TaskMessage ) error {
472472 panic ("missing something" )
473473 }),
474474 )
0 commit comments