go-ethereum/p2p/discover
Martin HS b5a88dafae
p2p/discover: fix flaky tests writing to test.log after completion (#30506)
This PR fixes two tests, which had a tendency to sometimes write to the `*testing.T` `log` facility after the test function had completed, which is not allowed. This PR fixes it by using waitgroups to ensure that the handler/logwriter terminates before the test exits.

closes #30505
2024-09-26 08:12:12 +02:00
..
v4wire p2p/discover: refactor node and endpoint representation (#29844) 2024-05-29 15:02:26 +02:00
v5wire p2p: use netip.Addr where possible (#29891) 2024-06-05 19:31:04 +02:00
common.go p2p/discover: refactor node and endpoint representation (#29844) 2024-05-29 15:02:26 +02:00
lookup.go p2p/discover: refactor node and endpoint representation (#29844) 2024-05-29 15:02:26 +02:00
metrics.go p2p/discover: fix Write method in metered connection (#30355) 2024-08-27 14:10:32 +02:00
node.go p2p/discover: remove type encPubkey (#30172) 2024-07-18 11:09:02 +02:00
ntp.go all: remove dependency on golang.org/exp (#29314) 2024-03-25 07:50:18 +01:00
table_reval_test.go p2p/discover: refactor node and endpoint representation (#29844) 2024-05-29 15:02:26 +02:00
table_reval.go p2p/discover: schedule revalidation also when all nodes are excluded (#30239) 2024-07-31 21:38:23 +02:00
table_test.go p2p/discover: improve flaky revalidation tests (#30023) 2024-06-21 15:29:07 +02:00
table_util_test.go p2p/discover: remove type encPubkey (#30172) 2024-07-18 11:09:02 +02:00
table.go p2p/discover: add missing lock when calling tab.handleAddNode (#29960) 2024-06-09 22:47:51 +02:00
v4_lookup_test.go p2p/discover: fix flaky tests writing to test.log after completion (#30506) 2024-09-26 08:12:12 +02:00
v4_udp_test.go p2p/discover: remove type encPubkey (#30172) 2024-07-18 11:09:02 +02:00
v4_udp.go cmd/utils,p2p: enable discv5 by default (#30327) 2024-08-20 16:02:54 +02:00
v5_talk.go p2p/discover: refactor node and endpoint representation (#29844) 2024-05-29 15:02:26 +02:00
v5_udp_test.go p2p/discover: remove type encPubkey (#30172) 2024-07-18 11:09:02 +02:00
v5_udp.go p2p/discover: unwrap 4-in-6 UDP source addresses (#29944) 2024-06-06 16:15:22 +03:00