ci: adds -skip flag to the race tests (#1023)
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
4
.github/workflows/commit.yaml
vendored
4
.github/workflows/commit.yaml
vendored
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user