Ensure that rpc call to send messages is successful

This commit is contained in:
Franck Royer 2021-05-06 10:36:36 +10:00
parent 3f43e8be79
commit d19be03862
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 6 additions and 2 deletions

View File

@ -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({