holepunchto / hyperswarm

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

replaced tests timeouts with flush helper #165

Closed rafapaezbas closed 11 months ago

rafapaezbas commented 11 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 11 months ago

CI is failing

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