Force identify nim node to support waku protocol

This commit is contained in:
Franck Royer 2021-03-15 15:34:56 +11:00
parent 589ca0258b
commit 6558ac60bb
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ test('Nim-interop: js node sends message to nim node', async (t) => {
const nimWaku = new NimWaku(t.title);
await nimWaku.start({ staticnode: multiAddrWithId });
// TODO: Remove this hack, tracked with https://github.com/status-im/nim-waku/issues/419
node.identifyService!.peerStore.protoBook.set(await nimWaku.getPeerId(), [
CODEC,
]);
await wakuRelayNode.publish(message);
await nimWaku.waitForLog('WakuMessage received');