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

cmd/devp2p: refactor eth test suite #22843

Merged
merged 4 commits into from
May 25, 2021
Merged

Conversation

renaynay
Copy link
Contributor

@renaynay renaynay commented May 7, 2021

This PR refactors the eth test suite to make it more readable and easier to use.

Some notable differences:

  • a new file helpers.go stores all of the methods used between both eth66 and eth65 and below tests, as well as methods shared among many test functions.
  • suite.go now contains all of the test functions for both eth65 tests and eth66 tests.
  • the utesting.T object doesn't get passed through to other helper methods, but is instead only used within the scope of the test function, whereas helper methods return errors, so only the test function itself can fatal out in the case of an error.
  • the full test suite now only takes 13.5 seconds to run.

@renaynay renaynay changed the title [WIP] cmd/devp2p: refactor eth test suite cmd/devp2p: refactor eth test suite May 17, 2021
@renaynay renaynay marked this pull request as ready for review May 17, 2021 13:53
@renaynay renaynay requested a review from fjl May 17, 2021 13:53
@renaynay
Copy link
Contributor Author

renaynay commented May 18, 2021

TestTransaction is flakey.

Fixed.

@fjl fjl merged commit 49bde05 into ethereum:master May 25, 2021
@fjl fjl added this to the 1.10.4 milestone May 25, 2021
reds pushed a commit to reds/go-ethereum that referenced this pull request Aug 28, 2021
This PR refactors the eth test suite to make it more readable and
easier to use. Some notable differences:

- A new file helpers.go stores all of the methods used between
  both eth66 and eth65 and below tests, as well as methods shared
  among many test functions.
- suite.go now contains all of the test functions for both eth65
  tests and eth66 tests.
- The utesting.T object doesn't get passed through to other helper methods,
  but is instead only used within the scope of the test function,
  whereas helper methods return errors, so only the test function
  itself can fatal out in the case of an error.
- The full test suite now only takes 13.5 seconds to run.
i-norden pushed a commit to cerc-io/go-ethereum that referenced this pull request Sep 10, 2021
This PR refactors the eth test suite to make it more readable and
easier to use. Some notable differences:

- A new file helpers.go stores all of the methods used between
  both eth66 and eth65 and below tests, as well as methods shared
  among many test functions.
- suite.go now contains all of the test functions for both eth65
  tests and eth66 tests.
- The utesting.T object doesn't get passed through to other helper methods,
  but is instead only used within the scope of the test function,
  whereas helper methods return errors, so only the test function
  itself can fatal out in the case of an error.
- The full test suite now only takes 13.5 seconds to run.
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
This PR refactors the eth test suite to make it more readable and
easier to use. Some notable differences:

- A new file helpers.go stores all of the methods used between
  both eth66 and eth65 and below tests, as well as methods shared
  among many test functions.
- suite.go now contains all of the test functions for both eth65
  tests and eth66 tests.
- The utesting.T object doesn't get passed through to other helper methods,
  but is instead only used within the scope of the test function,
  whereas helper methods return errors, so only the test function
  itself can fatal out in the case of an error.
- The full test suite now only takes 13.5 seconds to run.
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.

None yet

2 participants