Skip to content

Commit

Permalink
remove parallel in test T^T
Browse files Browse the repository at this point in the history
Signed-off-by: you06 <you1474600@gmail.com>
  • Loading branch information
you06 committed Dec 24, 2021
1 parent fd44eb2 commit 905738b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion util/paging/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ import (
)

func TestMain(m *testing.M) {
testbridge.WorkaroundGoCheckFlags()
testbridge.SetupForCommonTest()
goleak.VerifyTestMain(m)
}
4 changes: 0 additions & 4 deletions util/paging/paging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 905738b

Please sign in to comment.