Skip to content

Commit

Permalink
Flaky tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncruces committed Feb 3, 2024
1 parent 7438fdb commit cdab468
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
go-version: stable

- name: Test
run: GOARCH=386 go test -v ./...
run: GOARCH=386 go test -v -short ./...

test-arm:
runs-on: ubuntu-latest
Expand All @@ -37,7 +37,7 @@ jobs:
uses: docker/setup-qemu-action@v3

- name: Test
run: GOARCH=arm64 go test -v ./...
run: GOARCH=arm64 go test -v -short ./...

test-m1:
runs-on: macos-14
Expand Down
15 changes: 7 additions & 8 deletions vfs/tests/mptest/mptest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ func Test_crash01(t *testing.T) {
if testing.Short() {
t.Skip("skipping in short mode")
}
if os.Getenv("CI") != "" {
t.Skip("skipping in CI")
}

ctx := util.NewContext(newContext(t))
name := filepath.Join(t.TempDir(), "test.db")
Expand Down Expand Up @@ -157,10 +160,8 @@ func Test_multiwrite01(t *testing.T) {

func Test_config01_memory(t *testing.T) {
ctx := util.NewContext(newContext(t))
cfg := config(ctx).WithArgs("mptest", "/test.db",
"config01.test",
"--vfs", "memdb",
"--timeout", "1000")
cfg := config(ctx).WithArgs("mptest", "/test.db", "config01.test",
"--vfs", "memdb")
mod, err := rt.InstantiateModule(ctx, module, cfg)
if err != nil {
t.Fatal(err)
Expand All @@ -174,10 +175,8 @@ func Test_multiwrite01_memory(t *testing.T) {
}

ctx := util.NewContext(newContext(t))
cfg := config(ctx).WithArgs("mptest", "/test.db",
"multiwrite01.test",
"--vfs", "memdb",
"--timeout", "1000")
cfg := config(ctx).WithArgs("mptest", "/test.db", "multiwrite01.test",
"--vfs", "memdb")
mod, err := rt.InstantiateModule(ctx, module, cfg)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit cdab468

Please sign in to comment.