ci: adds -skip flag to the race tests (#1023)

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
Takeshi Yoneda
2023-01-11 12:23:09 +09:00
committed by GitHub
parent 803e6ba61e
commit 2df84c679c
2 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ concurrency:
jobs:
check:
name: Pre-commit check, Go-${{ matrix.go-version }}
name: Pre-commit check
runs-on: ubuntu-20.04
steps:
- name: Install latest wast2json
@@ -79,7 +79,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
# Run tests with -race only on main branch push.
- run: make test go_test_options='-timeout 10m -race'
- run: make test go_test_options='-timeout 10m -race -short'
if: ${{ github.event_name == 'push' }}
- name: "Generate coverage report" # only once (not per OS)

View File

@@ -314,9 +314,12 @@ func Test733(t *testing.T) {
require.Contains(t, err.Error(), "out of bounds memory")
})
// Note: this case uses large memory space, so can be slow like 1 to 2 seconds.
name = "store higher offset"
t.Run(name, func(t *testing.T) {
if testing.Short() {
// Note: this case uses large memory space, so can be slow like 1 to 2 seconds even without -race.
t.SkipNow()
}
f := mod.ExportedFunction(name)
require.NotNil(t, f)
_, err = f.Call(ctx)