Add some awaits

This commit is contained in:
Franck Royer 2022-05-26 15:05:18 +10:00
parent e5dde6f9e9
commit 4cf3d3ffd8
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ describe("Waku Filter", () => {
messageText,
TestContentTopic
);
waku.relay.send(message);
await waku.relay.send(message);
while (messageCount === 0) {
await delay(250);
}
@ -69,10 +69,10 @@ describe("Waku Filter", () => {
{ contentTopics: [TestContentTopic] },
callback
);
waku.relay.send(
await waku.relay.send(
await WakuMessage.fromUtf8String("Filtering works!", TestContentTopic)
);
waku.relay.send(
await waku.relay.send(
await WakuMessage.fromUtf8String(
"Filtering still works!",
TestContentTopic
@ -93,7 +93,7 @@ describe("Waku Filter", () => {
{ contentTopics: [TestContentTopic] },
callback
);
waku.relay.send(
await waku.relay.send(
await WakuMessage.fromUtf8String(
"This should be received",
TestContentTopic
@ -101,7 +101,7 @@ describe("Waku Filter", () => {
);
await delay(100);
await unsubscribe();
waku.relay.send(
await waku.relay.send(
await WakuMessage.fromUtf8String(
"This should not be received",
TestContentTopic