From 905738b8f97445adeeb852342f189681fcefe6b8 Mon Sep 17 00:00:00 2001 From: you06 Date: Fri, 24 Dec 2021 17:44:06 +0800 Subject: [PATCH] remove parallel in test T^T Signed-off-by: you06 --- util/paging/main_test.go | 2 +- util/paging/paging_test.go | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/util/paging/main_test.go b/util/paging/main_test.go index 94766559896e1..af568af279474 100644 --- a/util/paging/main_test.go +++ b/util/paging/main_test.go @@ -22,6 +22,6 @@ import ( ) func TestMain(m *testing.M) { - testbridge.WorkaroundGoCheckFlags() + testbridge.SetupForCommonTest() goleak.VerifyTestMain(m) } diff --git a/util/paging/paging_test.go b/util/paging/paging_test.go index 3243e9dec9fe4..1890b4d754d54 100644 --- a/util/paging/paging_test.go +++ b/util/paging/paging_test.go @@ -21,16 +21,12 @@ import ( ) func TestGrowPagingSize(t *testing.T) { - t.Parallel() - require.Equal(t, GrowPagingSize(MinPagingSize), MinPagingSize*pagingSizeGrow) require.Equal(t, GrowPagingSize(MaxPagingSize), MaxPagingSize) require.Equal(t, GrowPagingSize(MaxPagingSize/pagingSizeGrow+1), MaxPagingSize) } func TestCalculateSeekCnt(t *testing.T) { - t.Parallel() - require.InDelta(t, CalculateSeekCnt(0), 0, 0.1) require.InDelta(t, CalculateSeekCnt(1), 1, 0.1) require.InDelta(t, CalculateSeekCnt(MinPagingSize), 1, 0.1)