Skip to content

Commit

Permalink
kvserver,stats: skip a couple tests under race
Browse files Browse the repository at this point in the history
Epic: CRDB-8308
Release note: None
  • Loading branch information
rickystewart committed Dec 15, 2023
1 parent 129b274 commit 99884f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kv/kvserver/replica_learner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,9 @@ func TestReplicaGCQueueSeesLearnerOrJointConfig(t *testing.T) {
func TestRaftSnapshotQueueSeesLearner(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderRace(t, "probable OOM")

ctx := context.Background()
blockSnapshotsCh := make(chan struct{})
knobs, ltk := makeReplicationTestKnobs()
Expand Down
3 changes: 3 additions & 0 deletions pkg/sql/stats/stats_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/sql/types"
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
"github.com/cockroachdb/cockroach/pkg/util/encoding"
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
Expand Down Expand Up @@ -435,6 +436,8 @@ func TestCacheAutoRefresh(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderRace(t, "probable OOM")

ctx := context.Background()
tc := serverutils.StartCluster(t, 3 /* numNodes */, base.TestClusterArgs{})
defer tc.Stopper().Stop(ctx)
Expand Down

0 comments on commit 99884f8

Please sign in to comment.