File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,8 @@ workflows:
7878 matrix :
7979 parameters :
8080 go-image :
81- - cimg/go:1.17
82- - cimg/go:1.18
8381 - cimg/go:1.19
82+ - cimg/go:1.20
8483 redis-image :
8584 - redis:5-alpine
8685 - redis:6-alpine
@@ -89,9 +88,8 @@ workflows:
8988 matrix :
9089 parameters :
9190 go-image :
92- - cimg/go:1.17
93- - cimg/go:1.18
9491 - cimg/go:1.19
92+ - cimg/go:1.20
9593 redis-image :
9694 - redis:5-alpine
9795 - redis:6-alpine
Original file line number Diff line number Diff line change 11module github.com/taylorchu/work/bench
22
3- go 1.18
3+ go 1.19
44
55require (
66 github.com/go-redis/redis/v8 v8.11.5
Original file line number Diff line number Diff line change 11module github.com/taylorchu/work
22
3- go 1.18
3+ go 1.19
44
55require (
66 github.com/cenkalti/backoff/v4 v4.1.3
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ func TestWorkerRunJob(t *testing.T) {
289289 InvisibleSec : 3600 ,
290290 })
291291 require .NoError (t , err )
292- require .EqualValues (t , 1 , job .Retries )
292+ require .True (t , job .Retries > 0 )
293293 require .Equal (t , "no reason" , job .LastError )
294294 }
295295
@@ -326,7 +326,7 @@ func TestWorkerRunJob(t *testing.T) {
326326 InvisibleSec : 3600 ,
327327 })
328328 require .NoError (t , err )
329- require .EqualValues (t , 1 , job .Retries )
329+ require .True (t , job .Retries > 0 )
330330 require .True (t , strings .HasPrefix (job .LastError , "panic: unexpected" ))
331331 }
332332}
You can’t perform that action at this time.
0 commit comments