From 7012d949b32c66163b9bbed0052fc158e06cd503 Mon Sep 17 00:00:00 2001 From: SungJin1212 Date: Fri, 6 Dec 2024 17:57:42 +0900 Subject: [PATCH] Fix test race condition due to EnableExperimentalFunctions Signed-off-by: SungJin1212 --- .../tripperware/queryrange/query_range_middlewares_test.go | 1 - pkg/querier/tripperware/queryrange/split_by_interval_test.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/pkg/querier/tripperware/queryrange/query_range_middlewares_test.go b/pkg/querier/tripperware/queryrange/query_range_middlewares_test.go index 5acb18d87e..c8238a9a62 100644 --- a/pkg/querier/tripperware/queryrange/query_range_middlewares_test.go +++ b/pkg/querier/tripperware/queryrange/query_range_middlewares_test.go @@ -25,7 +25,6 @@ var ( ) func TestRoundTrip(t *testing.T) { - t.Parallel() s := httptest.NewServer( middleware.AuthenticateUser.Wrap( http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { diff --git a/pkg/querier/tripperware/queryrange/split_by_interval_test.go b/pkg/querier/tripperware/queryrange/split_by_interval_test.go index 4d7e4a9a68..e9cfd8526f 100644 --- a/pkg/querier/tripperware/queryrange/split_by_interval_test.go +++ b/pkg/querier/tripperware/queryrange/split_by_interval_test.go @@ -330,7 +330,6 @@ func TestSplitByDay(t *testing.T) { } func Test_evaluateAtModifier(t *testing.T) { - t.Parallel() const ( start, end = int64(1546300800), int64(1646300800) ) @@ -386,7 +385,6 @@ func Test_evaluateAtModifier(t *testing.T) { } { tt := tt t.Run(tt.in, func(t *testing.T) { - t.Parallel() out, err := evaluateAtModifierFunction(tt.in, start, end) if tt.expectedErrorCode != 0 { require.Error(t, err)