Skip to content

Commit

Permalink
reduce subscribeToAll test length to prevent timeout on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
George-Payne committed Nov 17, 2020
1 parent 74988ab commit 1a7762b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__test__/streams/subscribeToAll.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ describe("subscribeToAll", () => {
.execute(connection);

writeEventsToStream(STREAM_NAME)
.send(...testEvents(999))
.send(...testEvents(99))
.send(finishEvent.build())
.execute(connection);

Expand Down Expand Up @@ -325,9 +325,9 @@ describe("subscribeToAll", () => {
}

expect(doSomething).toBeCalled();
// unique numbers from 0 -> 998
expect(readEvents.size).toBe(999);
expect(doSomethingElse).toBeCalledTimes(1000);
// unique numbers from 0 -> 98
expect(readEvents.size).toBe(99);
expect(doSomethingElse).toBeCalledTimes(100);
});

test("after the fact event listeners", async () => {
Expand Down

0 comments on commit 1a7762b

Please sign in to comment.