fix(tests): flaky timeout to wait for peer-exchange
danisharora099 opened this issue · comments
This is a change request
Problem
For our compliance test:
js-waku/packages/tests/tests/peer-exchange/compliance.spec.ts
Lines 51 to 54 in 6f188ef
This is quite hacky, and seems to introduce some race conditions as brought up by @gabrielmer.
Proposed Solutions
Use a more predictable logic that waits for peer-exchange to be mounted.
Eg: peerExchange.isMounted
/peerExchange.on("mounted")