holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.03k stars 84 forks source link

Unflake + clean up single-reconnect test #167

Closed HDegroote closed 6 months ago

HDegroote commented 6 months ago

Simplifies the test by letting only one side destroy the connection.

In the previous version, both sides of the connection destroyed it, which occasionally resulted in race conditions on the test logic (related to one swarm already re-establishing the connection before the other side had closed it)