@@ -95,7 +95,7 @@ func TestRedisShutdown(t *testing.T) {
95
95
defer testcontainers .CleanupContainer (t , redisC )
96
96
97
97
w := NewWorker (
98
- WithConnectionString (endpoint ),
98
+ WithAddr (endpoint ),
99
99
WithChannel ("test2" ),
100
100
)
101
101
q , err := queue .NewQueue (
@@ -120,7 +120,7 @@ func TestCustomFuncAndWait(t *testing.T) {
120
120
Message : "foo" ,
121
121
}
122
122
w := NewWorker (
123
- WithConnectionString (endpoint ),
123
+ WithAddr (endpoint ),
124
124
WithChannel ("test3" ),
125
125
WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
126
126
time .Sleep (500 * time .Millisecond )
@@ -211,7 +211,7 @@ func TestEnqueueJobAfterShutdown(t *testing.T) {
211
211
Message : "foo" ,
212
212
}
213
213
w := NewWorker (
214
- WithConnectionString (endpoint ),
214
+ WithAddr (endpoint ),
215
215
)
216
216
q , err := queue .NewQueue (
217
217
queue .WithWorker (w ),
@@ -236,7 +236,7 @@ func TestJobReachTimeout(t *testing.T) {
236
236
Message : "foo" ,
237
237
}
238
238
w := NewWorker (
239
- WithConnectionString (endpoint ),
239
+ WithAddr (endpoint ),
240
240
WithChannel ("timeout" ),
241
241
WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
242
242
for {
@@ -276,7 +276,7 @@ func TestCancelJobAfterShutdown(t *testing.T) {
276
276
Message : "test" ,
277
277
}
278
278
w := NewWorker (
279
- WithConnectionString (endpoint ),
279
+ WithAddr (endpoint ),
280
280
WithChannel ("cancel" ),
281
281
WithLogger (queue .NewLogger ()),
282
282
WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
@@ -317,7 +317,7 @@ func TestGoroutineLeak(t *testing.T) {
317
317
Message : "foo" ,
318
318
}
319
319
w := NewWorker (
320
- WithConnectionString (endpoint ),
320
+ WithAddr (endpoint ),
321
321
WithChannel ("GoroutineLeak" ),
322
322
WithLogger (queue .NewEmptyLogger ()),
323
323
WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
@@ -365,7 +365,7 @@ func TestGoroutinePanic(t *testing.T) {
365
365
Message : "foo" ,
366
366
}
367
367
w := NewWorker (
368
- WithConnectionString (endpoint ),
368
+ WithAddr (endpoint ),
369
369
WithChannel ("GoroutinePanic" ),
370
370
WithRunFunc (func (ctx context.Context , m core.QueuedMessage ) error {
371
371
panic ("missing something" )
0 commit comments