From d19be038624f4a5ade45140f93497a864a4ba57c Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 6 May 2021 10:36:36 +1000 Subject: [PATCH] Ensure that rpc call to send messages is successful --- src/lib/waku_store/index.spec.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/waku_store/index.spec.ts b/src/lib/waku_store/index.spec.ts index 1cec38b0b9..930cba1ebc 100644 --- a/src/lib/waku_store/index.spec.ts +++ b/src/lib/waku_store/index.spec.ts @@ -21,7 +21,9 @@ describe('Waku Store', () => { await nimWaku.start({ store: true }); for (let i = 0; i < 2; i++) { - await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`)); + expect( + await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`)) + ).to.be.true; } waku = await Waku.create({ @@ -53,7 +55,9 @@ describe('Waku Store', () => { await nimWaku.start({ store: true }); for (let i = 0; i < 15; i++) { - await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`)); + expect( + await nimWaku.sendMessage(WakuMessage.fromUtf8String(`Message ${i}`)) + ).to.be.true; } waku = await Waku.create({