probe-lab / go-kademlia

Generic Go Kademlia implementation
Other
17 stars 4 forks source link

Fix flaky libp2p test #103

Closed iand closed 10 months ago

iand commented 10 months ago

Typical test failure output (from here)

--- FAIL: TestConnections (0.10s)
    libp2pendpoint_test.go:141: 
            Error Trace:    D:/a/go-kademlia/go-kademlia/libp2p/libp2pendpoint_test.go:141
            Error:          "[/ip4/10.1.14.5/tcp/52451 /ip4/10.1.14.5/udp/64542/quic-v1 /ip4/10.1.14.5/udp/64542/quic /ip4/10.1.14.5/udp/64543/quic-v1/webtransport/certhash/uEiCBSMicW6t4jrRDomFee97wstq94i9hwk8VXTBXGVUZ2w/certhash/uEiAOcJ-tBtDHXZMrSOVP2J1CNtkji3D0VwDaGFUNCzmXBw]" should have 12 item(s), but has 4
            Test:           TestConnections
guillaumemichel commented 10 months ago

Also:

libp2pendpoint_test.go:437:
Error Trace:    D:/a/go-kademlia/go-kademlia/network/endpoint/libp2pendpoint/libp2pendpoint_test.go:437
Error:          Should be true
Test:           TestReqTimeout
iand commented 10 months ago

Maybe also look at whether this is still relevant with https://github.com/plprobelab/go-kademlia/pull/104