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

cannon: Add more sync tests #12949

Merged

Conversation

mbaxter
Copy link
Contributor

@mbaxter mbaxter commented Nov 18, 2024

Description

Port more Go sync tests to increase test coverage over concurrency primitives:

  • Add a shared TestRunner utility that can replace testing.T in the Go tests being ported.
  • Copy over sync tests from the Go repo (named <orig_file>_copy.go), add a license header, and replace the testing.T dependency in each individual tests with the TestRunner util.

Builds on: #12771

Testing

  • Port more unit tests from the Go repo's sync package.
  • Add some simple tests for the new TestRunner utility to make sure we'll get a non-zero exit when a test fails.

Metadata

Fixes #12162

@mbaxter
Copy link
Contributor Author

mbaxter commented Nov 18, 2024

/ci authorize 3745516

2 similar comments
@mbaxter
Copy link
Contributor Author

mbaxter commented Nov 18, 2024

/ci authorize 3745516

@mslipper
Copy link
Collaborator

/ci authorize 3745516

@mbaxter mbaxter requested a review from Inphi November 18, 2024 18:54
@mbaxter mbaxter marked this pull request as ready for review November 18, 2024 18:54
@mbaxter mbaxter requested review from a team as code owners November 18, 2024 18:55
@Inphi
Copy link
Contributor

Inphi commented Nov 21, 2024

@mbaxter merging now to lock down audit commit.

@Inphi Inphi added this pull request to the merge queue Nov 21, 2024
Merged via the queue into ethereum-optimism:develop with commit cc2715c Nov 21, 2024
49 checks passed
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.

MTCannon: Add more test coverage over Go concurrency primitives
3 participants