refactor: In functions like ListOffChainData and GetMissingBatchKeys, although defer rows.Close() is used, if QueryxContext fails, rows will be nil. Calling defer rows.Close() in this case can trigger a panic. #596
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Test e2e | |
on: | |
push: | |
branches: | |
- main | |
- master | |
- develop | |
- update-external-dependencies | |
- 'release/**' | |
pull_request: | |
jobs: | |
test-e2e: | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [ 1.21.x ] | |
goarch: [ "amd64" ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
env: | |
GOARCH: ${{ matrix.goarch }} | |
- name: Build Docker | |
run: make build-docker | |
- name: Test | |
run: make test-e2e | |
working-directory: test |