From 241d00916338c67a1ce9f1e2a565fafc18abb4af Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Tue, 5 Dec 2023 10:42:11 +0100 Subject: [PATCH] fix: disable route updates for redundance message checks --- packages/transport/stream/src/__tests__/stream.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/transport/stream/src/__tests__/stream.test.ts b/packages/transport/stream/src/__tests__/stream.test.ts index aafb7f8c9..dd82e18b2 100644 --- a/packages/transport/stream/src/__tests__/stream.test.ts +++ b/packages/transport/stream/src/__tests__/stream.test.ts @@ -665,7 +665,7 @@ describe("streams", function () { }); it("messages are only sent once to each peer", async () => { - let totalWrites = 1; + let totalWrites = 10; expect(streams[0].ack).toHaveLength(0); // push one message to ensure paths are found @@ -693,7 +693,7 @@ describe("streams", function () { ) ).toBeTrue(); - // await waitForResolved(() => expect(streams[0].ack).toHaveLength(4)); TODO + streams[0].stream.routeSeekInterval = Number.MAX_VALUE; // disable seek so that we can check that the right amount of messages are sent below const allWrites = streams.map((x) => collectDataWrites(x.stream)); streams[1].received = [];