mirror of https://github.com/waku-org/js-waku.git
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…
Reference in New Issue