Only node receiving message needs to subscribe

This commit is contained in:
Franck Royer 2021-03-15 11:23:20 +11:00
parent 4c6c54cf87
commit eb874a956b
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

View File

@ -20,7 +20,6 @@ test('Publishes message', async (t) => {
await node1.dial(node2.peerId);
await wakuRelayNode1.subscribe();
await wakuRelayNode2.subscribe();
// Setup the promise before publishing to ensure the event is not missed
const promise = waitForNextData(node1.pubsub);