diff --git a/core/txpool/txpool_test.go b/core/txpool/txpool_test.go index ff8dfb9348..45e38e8a71 100644 --- a/core/txpool/txpool_test.go +++ b/core/txpool/txpool_test.go @@ -1080,7 +1080,6 @@ func TestQueueGlobalLimitingNoLocals(t *testing.T) { func testQueueGlobalLimiting(t *testing.T, nolocals bool) { t.Helper() - t.Parallel() // Create the pool to test the limit enforcement with statedb, _ := state.New(common.Hash{}, state.NewDatabase(rawdb.NewMemoryDatabase()), nil) diff --git a/eth/handler_eth_test.go b/eth/handler_eth_test.go index 83d5d14291..4d6b8d9c14 100644 --- a/eth/handler_eth_test.go +++ b/eth/handler_eth_test.go @@ -98,7 +98,7 @@ func TestForkIDSplit68(t *testing.T) { } func testForkIDSplit(t *testing.T, protocol uint) { - t.Parallel() + t.Helper() var ( engine = ethash.NewFaker() @@ -268,7 +268,7 @@ func TestRecvTransactions68(t *testing.T) { } func testRecvTransactions(t *testing.T, protocol uint) { - t.Parallel() + t.Helper() // Create a message handler, configure it to accept transactions and watch them handler := newTestHandler() @@ -442,7 +442,7 @@ func TestTransactionPropagation68(t *testing.T) { } func testTransactionPropagation(t *testing.T, protocol uint) { - t.Parallel() + t.Helper() // Create a source handler to send transactions from and a number of sinks // to receive them. We need multiple sinks since a one-to-one peering would @@ -774,7 +774,7 @@ func TestBroadcastMalformedBlock68(t *testing.T) { } func testBroadcastMalformedBlock(t *testing.T, protocol uint) { - t.Parallel() + t.Helper() // Create a source handler to broadcast blocks from and a number of sinks // to receive them. diff --git a/eth/protocols/eth/handler_test.go b/eth/protocols/eth/handler_test.go index a921bd673a..663b3096e2 100644 --- a/eth/protocols/eth/handler_test.go +++ b/eth/protocols/eth/handler_test.go @@ -165,7 +165,7 @@ func TestGetBlockHeaders68(t *testing.T) { } func testGetBlockHeaders(t *testing.T, protocol uint) { - t.Parallel() + t.Helper() backend := newTestBackend(maxHeadersServe + 15) defer backend.close() @@ -365,8 +365,6 @@ func TestGetBlockBodies68(t *testing.T) { } func testGetBlockBodies(t *testing.T, protocol uint) { - t.Parallel() - gen := func(n int, g *core.BlockGen) { if n%2 == 0 { w := &types.Withdrawal{ @@ -613,7 +611,7 @@ func TestGetBlockReceipts68(t *testing.T) { } func testGetBlockReceipts(t *testing.T, protocol uint) { - t.Parallel() + t.Helper() // Define three accounts to simulate transactions with acc1Key, _ := crypto.HexToECDSA("8a1f9a8f95be41cd7ccb6168179afb4504aefe388d1e14474d32c45c72ce7b7a") diff --git a/internal/flags/flags_test.go b/internal/flags/flags_test.go index a74d7e8c49..5cc6ce0a2a 100644 --- a/internal/flags/flags_test.go +++ b/internal/flags/flags_test.go @@ -22,9 +22,8 @@ import ( "testing" ) +// nolint:paralleltest func TestPathExpansion(t *testing.T) { - t.Parallel() - user, _ := user.Current() var tests map[string]string diff --git a/node/node_auth_test.go b/node/node_auth_test.go index 1fc75b8e06..b6e7bed0da 100644 --- a/node/node_auth_test.go +++ b/node/node_auth_test.go @@ -207,7 +207,6 @@ func TestAuthEndpoints(t *testing.T) { } for _, testCase := range testCases { - t.Parallel() t.Run(testCase.name, testCase.Run) } }