Wait a bit before subscribing

This commit is contained in:
Franck Royer 2021-03-26 13:08:16 +11:00
parent e99d1c012c
commit 1d248351c1
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 4 additions and 0 deletions

View File

@ -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) =>