mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-27 04:35:33 +00:00
Wait a bit before subscribing
This commit is contained in:
parent
e99d1c012c
commit
1d248351c1
@ -188,6 +188,10 @@ describe('Waku Relay', () => {
|
||||
|
||||
await waku.dialWithMultiAddr(nimPeerId, [nimWaku.multiaddr]);
|
||||
|
||||
await new Promise((resolve) =>
|
||||
waku.libp2p.pubsub.once('gossipsub:heartbeat', resolve)
|
||||
);
|
||||
|
||||
await waku.relay.subscribe();
|
||||
|
||||
await new Promise((resolve) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user