From 2af2ab518af2bcc84f45ba85da21683625b2777e Mon Sep 17 00:00:00 2001 From: Goran Rojovic Date: Wed, 14 Feb 2024 13:32:00 +0100 Subject: [PATCH] Remove parallelization --- tests/state_test.go | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/state_test.go b/tests/state_test.go index fb62258cac..2e6b01d3cf 100644 --- a/tests/state_test.go +++ b/tests/state_test.go @@ -196,36 +196,36 @@ func TestState(t *testing.T) { } file := file - t.Run(file, func(t *testing.T) { - t.Parallel() + // t.Run(file, func(t *testing.T) { + // t.Parallel() - data, err := os.ReadFile(file) - if err != nil { - t.Fatal(err) - } + data, err := os.ReadFile(file) + if err != nil { + t.Fatal(err) + } - var testCases map[string]testCase - if err = json.Unmarshal(data, &testCases); err != nil { - t.Fatalf("failed to unmarshal %s: %v", file, err) - } + var testCases map[string]testCase + if err = json.Unmarshal(data, &testCases); err != nil { + t.Fatalf("failed to unmarshal %s: %v", file, err) + } - for _, tc := range testCases { - for fork, postState := range tc.Post { - forks, exists := Forks[fork] - if !exists { - t.Logf("%s fork is not supported, skipping test case.", fork) - continue - } + for _, tc := range testCases { + for fork, postState := range tc.Post { + forks, exists := Forks[fork] + if !exists { + t.Logf("%s fork is not supported, skipping test case.", fork) + continue + } - fc := &forkConfig{name: fork, forks: forks} + fc := &forkConfig{name: fork, forks: forks} - for idx, postStateEntry := range postState { - err := RunSpecificTest(t, file, tc, fc, idx, postStateEntry) - require.NoError(t, tc.checkError(fork, idx, err)) - } + for idx, postStateEntry := range postState { + err := RunSpecificTest(t, file, tc, fc, idx, postStateEntry) + require.NoError(t, tc.checkError(fork, idx, err)) } } - }) + } + //}) } } }