mirror of https://github.com/status-im/js-waku.git
Do not rely on nim-waku trace logs for test purposes
This commit is contained in:
parent
29a3ec403c
commit
e534e0a4c8
2
nim-waku
2
nim-waku
|
@ -1 +1 @@
|
|||
Subproject commit 5d138f8a2c3f18703cfe6f7497e5d3fba074cdf2
|
||||
Subproject commit 5747ff5be00b7b99e61021c17a975761fbe151f3
|
|
@ -133,9 +133,12 @@ describe('Waku Relay', () => {
|
|||
|
||||
await waku.relay.publish(message);
|
||||
|
||||
await nimWaku.waitForLog('WakuMessage received');
|
||||
let msgs = [];
|
||||
|
||||
const msgs = await nimWaku.messages();
|
||||
while (msgs.length === 0) {
|
||||
await delay(200);
|
||||
msgs = await nimWaku.messages();
|
||||
}
|
||||
|
||||
expect(msgs[0].contentTopic).to.equal(message.contentTopic);
|
||||
expect(msgs[0].version).to.equal(message.version);
|
||||
|
@ -206,9 +209,12 @@ describe('Waku Relay', () => {
|
|||
|
||||
await waku.relay.publish(message);
|
||||
|
||||
await nimWaku.waitForLog('WakuMessage received');
|
||||
let msgs = [];
|
||||
|
||||
const msgs = await nimWaku.messages();
|
||||
while (msgs.length === 0) {
|
||||
await delay(200);
|
||||
msgs = await nimWaku.messages();
|
||||
}
|
||||
|
||||
expect(msgs[0].contentTopic).to.equal(message.contentTopic);
|
||||
expect(msgs[0].version).to.equal(message.version);
|
||||
|
|
Loading…
Reference in New Issue