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: fixes for eth and discv4 tests #23155

Merged
merged 6 commits into from
Jul 7, 2021
Merged

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Jul 2, 2021

This PR fixes a false positive PONG 'to' endpoint mismatch: got {IP:172.17.0.7 UDP:44025 TCP:44025}, want {IP:172.17.0.7 UDP:44025 TCP:0} in the hive tests, and adds some packet decoding tests.

cmd/devp2p/internal: fix test false positive
p2p/discover/v4wire: add besu example
"github.com/ethereum/go-ethereum/rlp"
)

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

Choose a reason for hiding this comment

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

I'm not sure we should keep this test. The test basically checks that RLP decoding works, but there are enough tests in package rlp to cover this, I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, sure

@fjl fjl changed the title p2p/discover/v4wire: add testcase for regression cmd/devp2p: fixes for eth and discv4 tests Jul 5, 2021
@fjl
Copy link
Contributor

fjl commented Jul 5, 2021

@holiman internal tests are failing now, so we can't merge it yet.

@holiman
Copy link
Contributor Author

holiman commented Jul 6, 2021

Failures fixed now, ptal @fjl

@fjl fjl merged commit b9d4412 into ethereum:master Jul 7, 2021
@fjl fjl added this to the 1.10.5 milestone Jul 7, 2021
sidhujag pushed a commit to sidhujag/go-ethereum that referenced this pull request Jul 10, 2021
This PR fixes a false positive PONG 'to' endpoint mismatch seen in hive tests:

    got {IP:172.17.0.7 UDP:44025 TCP:44025}, want {IP:172.17.0.7 UDP:44025 TCP:0}

Co-authored-by: Felix Lange <fjl@twurst.com>
atif-konasl pushed a commit to frozeman/pandora-execution-engine that referenced this pull request Oct 15, 2021
This PR fixes a false positive PONG 'to' endpoint mismatch seen in hive tests:

    got {IP:172.17.0.7 UDP:44025 TCP:44025}, want {IP:172.17.0.7 UDP:44025 TCP:0}

Co-authored-by: Felix Lange <fjl@twurst.com>
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