Felix Lange
ee35ddc8fd
cmd/devp2p/internal/ethtest: ignore block announcement in tx test ( #22957 )
4 years ago
rene
d836ad141e
cmd/devp2p/internal/ethtest: add block hash announcement test ( #22535 )
4 years ago
rene
49bde05a55
cmd/devp2p: refactor eth test suite ( #22843 )
...
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.
4 years ago
rene
8ff98108e5
cmd/devp2p: fix flakey tests in CI ( #22757 )
...
This PR fixes a couple of issues in the eth test suite that caused flakiness when run in the CI.
4 years ago
rene
cac1b21d39
cmd/devp2p/internal/ethtest: add more tx propagation tests ( #22630 )
...
This adds a test for large tx announcement messages, as well as a test to
check that announced tx hashes are requested by the node.
4 years ago
rene
ea54c58d4f
cmd/devp2p/internal/ethtest: run test suite as Go unit test ( #22698 )
...
This change adds a Go unit test that runs the protocol test suite
against the go-ethereum implementation of the eth protocol.
4 years ago
rene
36b51b8156
cmd/devp2p: add old block announcement test to eth test suite ( #22474 )
...
Add old block announcement test to eth test suite, checks to make sure old block announcement isn't propagated
4 years ago
rene
d3040a80d7
cmd/devp2p/internal/ethtest: skip eth/66 tests when v66 not supported ( #22460 )
4 years ago
rene
de9465f991
cmd/devp2p: add eth66 test suite ( #22363 )
...
Co-authored-by: Martin Holst Swende <martin@swende.se>
4 years ago
rene
f9445e93bb
cmd/devp2p/internal/ethtest: use shared message types ( #22315 )
...
This updates the eth protocol test suite to use the message type
definitions of the 'production' protocol implementation in eth/protocols/eth.
4 years ago
Marius van der Wijden
a1ddd9e1d3
cmd/devp2p/internal/ethtest: add transaction tests ( #21857 )
4 years ago
Marius van der Wijden
59b480ab4b
cmd/devp2p/internal/ethtest: add 'large announcement' tests ( #21792 )
...
* cmd/devp2p/internal/ethtest: added large announcement tests
* cmd/devp2p/internal/ethtest: added large announcement tests
* cmd/devp2p/internal/ethtest: refactored stuff a bit
* cmd/devp2p/internal/ethtest: added TestMaliciousStatus/Handshake
* cmd/devp2p/internal/ethtest: fixed rebasing issue
* happy linter, happy life
* cmd/devp2p/internal/ethtest: used readAndServe
* stuff
* cmd/devp2p/internal/ethtest: fixed test cases
4 years ago
rene
36bb7ac083
cmd/devp2p/internal/ethtest: add correct chain files and improve test output ( #21782 )
...
This PR replaces the old test genesis.json and chain.rlp files in the testdata
directory for the eth protocol test suite, and also adds documentation for
running the eth test suite locally.
It also improves the test output text and adds more timeouts.
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago
rene
716864deba
cmd/devp2p/internal/ethtest: improve eth test suite ( #21615 )
...
This fixes issues with the protocol handshake and status exchange
and adds support for responding to GetBlockHeaders requests.
4 years ago
rene
fdd42d425b
cmd/devp2p/internal/ethtest: lower protocol version to 64 ( #21604 )
4 years ago
rene
39f8268147
cmd/devp2p/internal/ethtest: update version in handshake ( #21603 )
4 years ago
rene
a25899f3dc
cmd/devp2p: add eth protocol test suite ( #21598 )
...
This change adds a test framework for the "eth" protocol and some basic
tests. The tests can be run using the './devp2p rlpx eth-test' command.
4 years ago