File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,9 @@ func TestJobReachTimeout(t *testing.T) {
359
359
assert .NoError (t , err )
360
360
q .Start ()
361
361
time .Sleep (50 * time .Millisecond )
362
- assert .NoError (t , q .Queue (m , job .WithTimeout (20 * time .Millisecond )))
362
+ assert .NoError (t , q .Queue (m , job.AllowOption {
363
+ Timeout : job .Time (20 * time .Millisecond ),
364
+ }))
363
365
time .Sleep (2 * time .Second )
364
366
q .Shutdown ()
365
367
q .Wait ()
@@ -400,7 +402,9 @@ func TestCancelJobAfterShutdown(t *testing.T) {
400
402
assert .NoError (t , err )
401
403
q .Start ()
402
404
time .Sleep (50 * time .Millisecond )
403
- assert .NoError (t , q .Queue (m , job .WithTimeout (3 * time .Second )))
405
+ assert .NoError (t , q .Queue (m , job.AllowOption {
406
+ Timeout : job .Time (3 * time .Second ),
407
+ }))
404
408
time .Sleep (2 * time .Second )
405
409
q .Shutdown ()
406
410
q .Wait ()
You can’t perform that action at this time.
0 commit comments