Upgrade CI go versions for tests (#416)

* Upgrade CI go versions for tests

* Upgrade CI go versions for tests

* fix buffer tests with wrong error log format
This commit is contained in:
Valentin Cocaud
2022-07-27 10:21:59 +02:00
committed by GitHub
parent d038133783
commit 5e0df5e5cf
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go: [ '1.16', '1.15' ]
go: [ '1.18', '1.17' ]
name: Linux Go ${{ matrix.go }}
steps:
- name: Checkout
@@ -33,13 +33,13 @@ jobs:
- name: Run Test Suite
run: make test
- uses: codecov/codecov-action@v3
if: matrix.go == '1.16'
if: matrix.go == '1.18'
build-darwin:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
go: [ '1.16', '1.15' ]
go: [ '1.18', '1.17' ]
name: Darwin Go ${{ matrix.go }}
steps:
- name: Checkout
@@ -66,7 +66,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.16'
go-version: '1.17'
- name: Installing go-licenses
run: go get github.com/google/go-licenses
- name: Checking licenses
+2 -2
View File
@@ -53,7 +53,7 @@ func TestBufferStoreCopyAndLoad(t *testing.T) {
for i := range cloneReal.Data {
if reflect.ValueOf(originalReal.Data[i]).Pointer() == reflect.ValueOf(cloneReal.Data[i]).Pointer() {
err := fmt.Errorf("Channel %d memory address should be different", i)
t.Errorf("%v: %w", errIdenticalAddress, err)
t.Errorf("%v: %s", errIdenticalAddress, err)
}
}
},
@@ -89,7 +89,7 @@ func TestBufferStoreCopyAndLoad(t *testing.T) {
for i := range cloneReal.Data {
if reflect.ValueOf(originalReal.Data[i]).Pointer() == reflect.ValueOf(cloneReal.Data[i]).Pointer() {
err := fmt.Errorf("Channel %d memory address should be different", i)
t.Errorf("%v: %w", errIdenticalAddress, err)
t.Errorf("%v: %s", errIdenticalAddress, err)
}
}
},