mirror of https://github.com/status-im/js-waku.git
Ensure that rpc call to send messages is successful
This commit is contained in:
parent
3f43e8be79
commit
d19be03862
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue