diff --git a/pkg/testutils/lint/passes/hash/hash_test.go b/pkg/testutils/lint/passes/hash/hash_test.go index ce19bc398c13..0f07ab149e93 100644 --- a/pkg/testutils/lint/passes/hash/hash_test.go +++ b/pkg/testutils/lint/passes/hash/hash_test.go @@ -13,11 +13,15 @@ package hash_test import ( "testing" + "github.com/cockroachdb/cockroach/pkg/testutils" "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/hash" "golang.org/x/tools/go/analysis/analysistest" ) func Test(t *testing.T) { + if testutils.NightlyStress() { + t.Skip("Go cache files don't work under stress") + } testdata := analysistest.TestData() analysistest.Run(t, testdata, hash.Analyzer, "a") } diff --git a/pkg/testutils/lint/passes/timer/timer_test.go b/pkg/testutils/lint/passes/timer/timer_test.go index 2f1e5a8ee760..8ab4a48d80eb 100644 --- a/pkg/testutils/lint/passes/timer/timer_test.go +++ b/pkg/testutils/lint/passes/timer/timer_test.go @@ -13,11 +13,15 @@ package timer_test import ( "testing" + "github.com/cockroachdb/cockroach/pkg/testutils" "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/timer" "golang.org/x/tools/go/analysis/analysistest" ) func Test(t *testing.T) { + if testutils.NightlyStress() { + t.Skip("Go cache files don't work under stress") + } testdata := analysistest.TestData() analysistest.Run(t, testdata, timer.Analyzer, "a") } diff --git a/pkg/testutils/lint/passes/unconvert/unconvert_test.go b/pkg/testutils/lint/passes/unconvert/unconvert_test.go index ef0717cbfda2..2f237b487bad 100644 --- a/pkg/testutils/lint/passes/unconvert/unconvert_test.go +++ b/pkg/testutils/lint/passes/unconvert/unconvert_test.go @@ -13,11 +13,15 @@ package unconvert_test import ( "testing" + "github.com/cockroachdb/cockroach/pkg/testutils" "github.com/cockroachdb/cockroach/pkg/testutils/lint/passes/unconvert" "golang.org/x/tools/go/analysis/analysistest" ) func Test(t *testing.T) { + if testutils.NightlyStress() { + t.Skip("Go cache files don't work under stress") + } testdata := analysistest.TestData() analysistest.Run(t, testdata, unconvert.Analyzer, "a") }