Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Oct 3, 2024
1 parent 631fca6 commit ac3f307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/banListTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ describe('Test: ACL updates will batch when rules are added in succession.', fun
LogService.debug('PolicyListTest', `aclEventCount: ${aclEventCount}`);
// If there's less than two then it means the ACL was updated by this test calling `this.mjolnir!.syncLists()`
// and not the listener that detects changes to ban lists (that we want to test!).
// It used to be 10, but it was too low, 30 seems better for CI.
assert.equal(aclEventCount < 50 && aclEventCount > 2, true, 'We should have sent less than 50 ACL events to each room because they should be batched')
// It used to be 10, but it was too low, 60 seems better for CI.
assert.equal(aclEventCount < 60 && aclEventCount > 2, true, 'We should have sent less than 60 ACL events to each room because they should be batched')
}));
})
})
Expand Down

0 comments on commit ac3f307

Please sign in to comment.