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)) } } - }) + } + //}) } } }