holepunchto / hyperswarm

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

Unflake + clean up single-reconnect test #167

Closed HDegroote closed 11 months ago

HDegroote commented 11 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)