From 4c6c54cf87ef1fd9fc1768a810360ac8d2ca6695 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 15 Mar 2021 10:26:54 +1100 Subject: [PATCH] Nim node subscribes to default topic as soon as it connects to js node --- src/lib/node.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/node.spec.ts b/src/lib/node.spec.ts index 70a0fd4528..50f87ac8b2 100644 --- a/src/lib/node.spec.ts +++ b/src/lib/node.spec.ts @@ -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);