Skip to content

Commit 9fa1eee

Browse files
authored
TWEAK: update to go 1.19 (#97)
1 parent df280e3 commit 9fa1eee

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

bench/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/taylorchu/work/bench
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/go-redis/redis/v8 v8.11.5

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/taylorchu/work
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/cenkalti/backoff/v4 v4.1.3

worker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)