Skip to content

Commit

Permalink
TWEAK: update to go 1.19 (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorchu authored Feb 3, 2023
1 parent df280e3 commit 9fa1eee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ workflows:
matrix:
parameters:
go-image:
- cimg/go:1.17
- cimg/go:1.18
- cimg/go:1.19
- cimg/go:1.20
redis-image:
- redis:5-alpine
- redis:6-alpine
Expand All @@ -89,9 +88,8 @@ workflows:
matrix:
parameters:
go-image:
- cimg/go:1.17
- cimg/go:1.18
- cimg/go:1.19
- cimg/go:1.20
redis-image:
- redis:5-alpine
- redis:6-alpine
Expand Down
2 changes: 1 addition & 1 deletion bench/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/taylorchu/work/bench

go 1.18
go 1.19

require (
github.com/go-redis/redis/v8 v8.11.5
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/taylorchu/work

go 1.18
go 1.19

require (
github.com/cenkalti/backoff/v4 v4.1.3
Expand Down
4 changes: 2 additions & 2 deletions worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func TestWorkerRunJob(t *testing.T) {
InvisibleSec: 3600,
})
require.NoError(t, err)
require.EqualValues(t, 1, job.Retries)
require.True(t, job.Retries > 0)
require.Equal(t, "no reason", job.LastError)
}

Expand Down Expand Up @@ -326,7 +326,7 @@ func TestWorkerRunJob(t *testing.T) {
InvisibleSec: 3600,
})
require.NoError(t, err)
require.EqualValues(t, 1, job.Retries)
require.True(t, job.Retries > 0)
require.True(t, strings.HasPrefix(job.LastError, "panic: unexpected"))
}
}
Expand Down

0 comments on commit 9fa1eee

Please sign in to comment.