Skip to content

Commit

Permalink
fix: test add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Dec 5, 2023
1 parent 110517f commit 36260ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/transport/stream/src/__tests__/stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,11 @@ describe("streams", function () {

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 = [];
streams[2].received = [];
const allWrites = streams.map((x) => collectDataWrites(x.stream));

await delay(3000);

// expect the data to be sent smartly
for (let i = 0; i < totalWrites; i++) {
Expand Down

0 comments on commit 36260ea

Please sign in to comment.