Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: run tests in parallel #30381

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

estensen
Copy link
Contributor

@estensen estensen commented Sep 2, 2024

Continuation of #28546

@@ -96,6 +95,8 @@ func testTransactionMarshal(t *testing.T, tests []txData, config *params.ChainCo
}

func TestTransaction_RoundTripRpcJSON(t *testing.T) {
t.Parallel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is moving it to the outer better than the inner one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it’s easier to see that a test is running in parallel when t.Parallel() is placed at the outer level, as it clearly indicates the parallelism applies to the entire test case.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if green

@holiman holiman added this to the 1.14.9 milestone Sep 16, 2024
@holiman holiman merged commit 4c4f212 into ethereum:master Sep 16, 2024
3 checks passed
@estensen estensen deleted the parallel-tests-internal branch September 16, 2024 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants