Skip to content

Commit 8375f67

Browse files
jsayolschmidt-sebastian
authored andcommitted
Fix waitsForCount EventAccumulator (tests) (#1378)
1 parent ab4f7ab commit 8375f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/database/test/helpers/EventAccumulator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
export const EventAccumulatorFactory = {
1818
waitsForCount: maxCount => {
1919
let count = 0;
20-
const condition = () => ea.eventData.length >= count;
20+
const condition = () => count >= maxCount;
2121
const ea = new EventAccumulator(condition);
2222
ea.onReset(() => {
2323
count = 0;

0 commit comments

Comments
 (0)