fix: add timeout to utils test (#1348)

This commit is contained in:
Sasha 2023-05-12 15:28:01 +02:00 committed by GitHub
parent 50c2c2540f
commit 014c52a4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,7 @@ describe("Util: toAsyncIterator", () => {
});
it("creates an iterator", async function () {
this.timeout(10000);
const messageText = "hey, what's up?";
const sent = { payload: utf8ToBytes(messageText) };
@ -58,6 +59,7 @@ describe("Util: toAsyncIterator", () => {
});
it("handles multiple messages", async function () {
this.timeout(10000);
const { iterator } = await toAsyncIterator(waku.filter, TestDecoder);
await waku.lightPush.send(TestEncoder, {
@ -75,6 +77,7 @@ describe("Util: toAsyncIterator", () => {
});
it("unsubscribes", async function () {
this.timeout(10000);
const { iterator, stop } = await toAsyncIterator(waku.filter, TestDecoder);
await waku.lightPush.send(TestEncoder, {