holepunchto / hyperdht

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

Use clean connection-end flow for connections tests #201

Open HDegroote opened 1 week ago

HDegroote commented 1 week ago

A bunch of connection tests relied on swallowing errors on the connection, because the other side force destroyed it. This PR makes them use a cleaner flow to end the connections, removing the error handlers. This can help catch unexpected errors in the future.