From 5a85f0d23971c75610a58cb843f0b7465c8b8bf1 Mon Sep 17 00:00:00 2001 From: Edd Robinson Date: Tue, 7 Nov 2017 18:55:43 +0000 Subject: [PATCH] Skip cardinality tests in race mode --- tests/server_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/server_test.go b/tests/server_test.go index 8c772c0fc9..0ff01c436b 100644 --- a/tests/server_test.go +++ b/tests/server_test.go @@ -7261,6 +7261,10 @@ func TestServer_Query_ShowSeries(t *testing.T) { } func TestServer_Query_ShowSeriesCardinalityEstimation(t *testing.T) { + if testing.Short() || os.Getenv("GORACE") != "" || os.Getenv("APPVEYOR") != "" { + t.Skip("Skipping test in short, race and appveyor mode.") + } + t.Parallel() s := OpenServer(NewConfig()) defer s.Close() @@ -7626,8 +7630,8 @@ func TestServer_Query_ShowMeasurements(t *testing.T) { } func TestServer_Query_ShowMeasurementCardinalityEstimation(t *testing.T) { - if testing.Short() { - t.Skip("skipping expensive test") + if testing.Short() || os.Getenv("GORACE") != "" || os.Getenv("APPVEYOR") != "" { + t.Skip("Skipping test in short, race and appveyor mode.") } t.Parallel()