dev: fix: t.Parallel called multiple times

This commit is contained in:
marcello33 2023-06-21 10:54:47 +02:00
parent c57ef82236
commit ba61cfa2e1
4 changed files with 1 additions and 5 deletions

View file

@ -2653,7 +2653,6 @@ func TestJournalingNoLocals(t *testing.T) {
func testJournaling(t *testing.T, nolocals bool) {
t.Helper()
t.Parallel()
// Create a temporary file for the journal
file, err := os.CreateTemp("", "")

View file

@ -339,7 +339,7 @@ func TestSendTransactions68(t *testing.T) {
}
func testSendTransactions(t *testing.T, protocol uint) {
t.Parallel()
t.Helper()
// Create a message handler and fill the pool with big transactions
handler := newTestHandler()

View file

@ -478,7 +478,6 @@ func TestGetNodeData68(t *testing.T) {
func testGetNodeData(t *testing.T, protocol uint, drop bool) {
t.Helper()
t.Parallel()
// Define three accounts to simulate transactions with
acc1Key, _ := crypto.HexToECDSA("8a1f9a8f95be41cd7ccb6168179afb4504aefe388d1e14474d32c45c72ce7b7a")

View file

@ -102,8 +102,6 @@ func (at *authTest) Run(t *testing.T) {
// nolint: tparallel, paralleltest
func TestAuthEndpoints(t *testing.T) {
t.Parallel()
var secret [32]byte
if _, err := crand.Read(secret[:]); err != nil {
t.Fatalf("failed to create jwt secret: %v", err)