holepunchto / hyperswarm

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

replaced tests timeouts with flush helper #165

Closed rafapaezbas closed 6 months ago

rafapaezbas commented 6 months ago

This PR replaces the timeouts in tests that could be replaced by the flush helper. It does not replace back off timeouts because the logic for does tests do not allow the replacement.

mafintosh commented 6 months ago

CI is failing

HDegroote commented 6 months ago

Yeah, I think we got lucky and discovered another flaky test relying on TIMEOUTS (it's not a test which was modified in this PR)

https://github.com/holepunchto/hyperswarm/blob/222939323c2bc2a1e8e57ec3b252cb46ab496430/test/swarm.js#L360-L402