mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
91076141b1
* configure a 50 ms timeout for tests (like v4 tests) * use in-memory DB (like v4 tests) * TestUDPv5_callTimeoutReset: improve speed from 1.2s to 0.2s * TestUDPv5_callTimeoutReset: reduce the likelihood of "RPC timeout" * move lookup tests to the "integration" suite * log details of unmatched packets and sends to non-existing nodes * fix flaky TestUDPv5_findnodeHandling: Table.nextRevalidateTime was random (from 0 to 10s). Sometimes it triggered doRevalidate immediately, and it produced an unexpected ping. Configure a high interval to not revalidate during the tests. Time improved from 1.7s to 0.2s. Test with: go test ./p2p/discover -run TestUDPv5 -count 1 |
||
---|---|---|
.. | ||
v4wire | ||
v5wire | ||
common.go | ||
lookup_util_test.go | ||
lookup.go | ||
node.go | ||
ntp.go | ||
table_integration_test.go | ||
table_test.go | ||
table_util_test.go | ||
table.go | ||
v4_lookup_test.go | ||
v4_udp_test.go | ||
v4_udp.go | ||
v5_lookup_test.go | ||
v5_udp_test.go | ||
v5_udp.go |