mjolnir/test/integration
Gnuxie 121d4cf98f
Mjolnir would apply stale ACL to rooms during batching (#331)
* banListTest would applyACL before rules appeared in `/state`.

Mjolnir will call applyServerAcls several times while a policy list is being updated, sometimes concurrently. This means a request to set a server ACL in a room which has old data can finish after a more recent recent request with the correct ACL. This means that the old ACL gets applied to the rooms (for a moment).

This is a follow up from 551065815e

* Only allow one invocation of applyServerAcls at a time as to not conflict with each other by using a promise chain.

We don't use the throttle queue because we don't want to be blocked by other background tasks.
We don't make another throttle queue because we don't want throttling and we don't want to delay the ACL application, which can happen even with throttle time of 0.
2022-08-09 10:57:38 +01:00
..
commands fix CI (#282) 2022-05-03 11:20:40 +01:00
abuseReportTest.ts Retry requests in case of throttling (#178) 2022-01-25 12:19:44 +00:00
banListTest.ts Mjolnir would apply stale ACL to rooms during batching (#331) 2022-08-09 10:57:38 +01:00
clientHelper.ts Fix the test script yarn test:manual and add it to tsconfig (#234) 2022-02-24 14:46:15 +00:00
detectFederationLagTest.ts A room Protection designed to measure lag in a room (#217) 2022-02-24 13:43:31 +01:00
fixtures.ts A room Protection designed to measure lag in a room (#217) 2022-02-24 13:43:31 +01:00
helloTest.ts Retry requests in case of throttling (#178) 2022-01-25 12:19:44 +00:00
manualLaunchScript.ts Give the ability to moderators to react quickly to /report abuse reports. (#137) 2021-11-09 13:15:49 +01:00
mjolnirSetupUtils.ts Fix the test script yarn test:manual and add it to tsconfig (#234) 2022-02-24 14:46:15 +00:00
policyConsumptionTest.ts Fix uses of old interface for registration helper in tests. 2022-01-25 18:23:14 +00:00
protectionSettingsTest.ts refactor (and simplify) how protections are stored in-memory 2022-02-07 13:48:32 +00:00
reportPollingTest.ts Report polling test temporality (#325) 2022-07-05 16:58:29 +01:00
roomMembersTest.ts Fix: roomMemberTest off-by-one error (#324) 2022-07-05 15:33:53 +02:00
standardConsequenceTest.ts fix CI (#282) 2022-05-03 11:20:40 +01:00
throttleQueueTest.ts A background queue for kicking (#296) 2022-06-08 11:49:43 +02:00
throttleTest.ts Remove debug leftovers from a test. (#314) 2022-07-06 14:20:25 +01:00
timelinePaginationTest.ts Retry requests in case of throttling (#178) 2022-01-25 12:19:44 +00:00
utilsTest.ts move LogProxy.logMessage to Mjolnir.logMessage (#194) 2022-02-15 15:44:41 +00:00