libp2p / go-libp2p

libp2p implementation in Go
MIT License
6.03k stars 1.06k forks source link

Add test using goleak #2517

Closed p-shahi closed 6 months ago

p-shahi commented 1 year ago
          Adding a test using goleak seems like a good idea as well.

Originally posted by @marten-seemann in https://github.com/libp2p/go-libp2p/issues/2514#issuecomment-1690915038

Add a goleak tests to catch issues like https://github.com/libp2p/go-libp2p/issues/2514 It seems like we have some existing goleak tests in the peerstore https://github.com/libp2p/go-libp2p/blob/5622bc35c25d8bba01f57797729d73eb82f60983/p2p/host/peerstore/pstoremem/inmem_test.go#L78

MarcoPolo commented 6 months ago

Done with #2118