mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-03 22:33:07 +00:00
fix: add timeout to utils test (#1348)
This commit is contained in:
parent
50c2c2540f
commit
014c52a4ac
@ -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, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user