mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-22 18:08:14 +00:00
Only node receiving message needs to subscribe
This commit is contained in:
parent
4c6c54cf87
commit
eb874a956b
@ -20,7 +20,6 @@ test('Publishes message', async (t) => {
|
|||||||
await node1.dial(node2.peerId);
|
await node1.dial(node2.peerId);
|
||||||
|
|
||||||
await wakuRelayNode1.subscribe();
|
await wakuRelayNode1.subscribe();
|
||||||
await wakuRelayNode2.subscribe();
|
|
||||||
|
|
||||||
// Setup the promise before publishing to ensure the event is not missed
|
// Setup the promise before publishing to ensure the event is not missed
|
||||||
const promise = waitForNextData(node1.pubsub);
|
const promise = waitForNextData(node1.pubsub);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user