From 973f11647aefd8189418b0a2fb37bcbb51d32260 Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Sun, 23 Jul 2023 15:27:01 +0530 Subject: [PATCH] rm: t.parallel from testQueueTimeLimiting tests --- core/txpool/txpool_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/txpool/txpool_test.go b/core/txpool/txpool_test.go index e2da634e13..8150c91748 100644 --- a/core/txpool/txpool_test.go +++ b/core/txpool/txpool_test.go @@ -1169,19 +1169,19 @@ func testQueueGlobalLimiting(t *testing.T, nolocals bool) { // // This logic should not hold for local transactions, unless the local tracking // mechanism is disabled. + +// nolint : paralleltest func TestQueueTimeLimiting(t *testing.T) { - t.Parallel() testQueueTimeLimiting(t, false) } + +// nolint : paralleltest func TestQueueTimeLimitingNoLocals(t *testing.T) { - t.Parallel() testQueueTimeLimiting(t, true) } -// nolint:gocognit +// nolint:gocognit,thelper func testQueueTimeLimiting(t *testing.T, nolocals bool) { - t.Helper() - // Reduce the eviction interval to a testable amount defer func(old time.Duration) { evictionInterval = old }(evictionInterval) evictionInterval = time.Millisecond * 100