Skip to content

Commit 462d394

Browse files
committed
pkg/cli: skip slow tsdump test under race conditions
Added a skip condition for the TestTSDumpRawGenerationWithEmbeddedMetadata test to prevent it from running under race conditions due to its slow execution time. Part of: CRDB-57722 Epic: none Release note: none
1 parent 433195f commit 462d394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/cli/tsdump_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323

2424
"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
2525
"github.com/cockroachdb/cockroach/pkg/testutils"
26+
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
2627
"github.com/cockroachdb/cockroach/pkg/ts/tsdumpmeta"
2728
"github.com/cockroachdb/cockroach/pkg/ts/tspb"
2829
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
@@ -404,6 +405,7 @@ func TestTSDumpConversionWithEmbeddedMetadata(t *testing.T) {
404405
func TestTSDumpRawGenerationWithEmbeddedMetadata(t *testing.T) {
405406
defer leaktest.AfterTest(t)()
406407
defer log.Scope(t).Close(t)
408+
skip.UnderRace(t, "test too slow under race")
407409

408410
c := NewCLITest(TestCLIParams{})
409411
defer c.Cleanup()

0 commit comments

Comments
 (0)