holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

Add error handlers which explicitly fail to sockets #147

Closed HDegroote closed 4 months ago

HDegroote commented 1 year ago

This adds error handlers to all sockets in test/connection which before didn't have one, and make the test explicitly fail if it triggers.

I did this while debugging a (now-solved) issue with flaky tests where it was hard to figure out which test actually caused the failure.

Feel free to close if not useful