Skip to content

Commit bebbf1c

Browse files
authored
Merge pull request #97 from nspcc-dev/75-go-122-upgrade
Go 1.22
2 parents b97db02 + dad76ef commit bebbf1c

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Set up Go
3838
uses: actions/setup-go@v5
3939
with:
40-
go-version: '1.22'
40+
go-version: '1.23'
4141
cache: true
4242

4343
- name: Update Go modules

.github/workflows/go.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,18 @@ jobs:
3434
strategy:
3535
matrix:
3636
os: [ubuntu-22.04, windows-2022, macos-12, macos-14]
37-
go: [ '1.21', '1.22' ]
37+
go: [ '1.22', '1.23' ]
3838
exclude:
3939
# Only latest Go version for Windows and MacOS.
40-
- os: windows-2022
41-
go: '1.21'
4240
- os: windows-2022
4341
go: '1.22'
44-
- os: macos-12
45-
go: '1.21'
4642
- os: macos-12
4743
go: '1.22'
48-
- os: macos-14
49-
go: '1.21'
5044
- os: macos-14
5145
go: '1.22'
5246
# Exclude latest Go version for Ubuntu as Coverage uses it.
5347
- os: ubuntu-22.04
54-
go: '1.22'
48+
go: '1.23'
5549
fail-fast: false
5650
steps:
5751
- name: Setup go
@@ -81,7 +75,7 @@ jobs:
8175
uses: actions/setup-go@v5
8276
with:
8377
cache: true
84-
go-version: 1.22
78+
go-version: 1.23
8579

8680
- name: Test and write coverage profile
8781
run: go test -coverprofile=coverage.txt -covermode=atomic ./...

go.mod

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

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/aws/aws-sdk-go-v2 v1.30.3

internal/datagen/generator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestGenerator(t *testing.T) {
4646
t.Run("keeps generating slices after consuming entire tail", func(t *testing.T) {
4747
g := NewGenerator(vu, 1000)
4848
initialSlice := g.nextSlice()
49-
for i := 0; i < TailSize; i++ {
49+
for range TailSize {
5050
g.nextSlice()
5151
}
5252
// After we looped around our tail and returned to the beginning we should have a

0 commit comments

Comments
 (0)