go-libp2p icon indicating copy to clipboard operation
go-libp2p copied to clipboard

fix: deadlock on panic in transport testsuite

Open Jorropo opened this issue 1 year ago • 0 comments
trafficstars

I had a panic in list.Multiaddr() which would deadlock the test instead of properly showing up the stack trace.

This happens because in the defer block it waits for <-done however because the test never proceed the other goroutine is stuck on .Accept(), never sending close(done).

Jorropo avatar Aug 22 '24 09:08 Jorropo