Nim node subscribes to default topic as soon as it connects to js node

This commit is contained in:
Franck Royer 2021-03-15 10:26:54 +11:00
parent fdbcbe0896
commit 4c6c54cf87
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 4 deletions

View File

@ -78,7 +78,7 @@ test('Nim-interop: nim-waku node connects to js node', async (t) => {
t.true(jsPeers.has(nimPeerId.toB58String()));
});
test('Nim-interop: js node subscribes to default waku topic (only checking js side)', async (t) => {
test('Nim-interop: js node receives default subscription from nim node', async (t) => {
const node = await createNode();
const peerId = node.peerId.toB58String();
@ -91,9 +91,6 @@ test('Nim-interop: js node subscribes to default waku topic (only checking js si
const nimWaku = new NimWaku();
await nimWaku.start(t.title, { staticnode: multiAddrWithId });
const wakuRelayNode = new WakuRelay(node.pubsub);
await wakuRelayNode.subscribe();
const nimPeerId = await nimWaku.getPeerId();
const subscribers = node.pubsub.getSubscribers(TOPIC);