From e49876df0e73511fe2023f42654930284c0d1ad3 Mon Sep 17 00:00:00 2001 From: Luca8991 Date: Fri, 8 Dec 2023 22:33:58 +0100 Subject: [PATCH] chore: link to not working workaround --- src/ic-websocket.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ic-websocket.test.ts b/src/ic-websocket.test.ts index 22f3de5..a00920e 100644 --- a/src/ic-websocket.test.ts +++ b/src/ic-websocket.test.ts @@ -257,6 +257,8 @@ describe("IcWebsocket class", () => { }); // we can't use fake timers here, because we need to wait for the processing of the open message + // the workaround suggested at https://github.com/jestjs/jest/issues/2157#issuecomment-897935688 + // doesn't seem to work deterministically // TODO: figure out how to fix this, since it increases a lot the test duration it("onopen is called when open message from canister is received", async () => { const onOpen = jest.fn();