Skip to content

Commit

Permalink
lint: disable during race tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RaduBerinde committed Jul 14, 2023
1 parent 7bb765e commit 10d9e4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/lint/lint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 10d9e4a

Please sign in to comment.