From 10d9e4a0bae3ef1b23e097376045887ad59416fd Mon Sep 17 00:00:00 2001 From: Radu Berinde Date: Thu, 13 Jul 2023 15:37:32 -0700 Subject: [PATCH] lint: disable during race tests --- internal/lint/lint_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/lint/lint_test.go b/internal/lint/lint_test.go index 30260c7569..e088d6964c 100644 --- a/internal/lint/lint_test.go +++ b/internal/lint/lint_test.go @@ -15,6 +15,7 @@ import ( "testing" "github.com/cockroachdb/errors" + "github.com/cockroachdb/pebble/internal/invariants" "github.com/ghemawat/stream" "github.com/stretchr/testify/require" ) @@ -48,6 +49,10 @@ func TestLint(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("lint checks skipped on Windows") } + if invariants.RaceEnabled { + // We are not interested in race-testing the linters themselves. + t.Skip("lint checks skipped on race builds") + } const root = "github.com/cockroachdb/pebble"