Skip to content

Commit

Permalink
fix: disable route updates for redundance message checks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Dec 5, 2023
1 parent 62cee57 commit 241d009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/transport/stream/src/__tests__/stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = [];
Expand Down

0 comments on commit 241d009

Please sign in to comment.