You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-31 15:24:23 +03:00
Remove flaky test (#4332)
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/4331
This commit is contained in:
committed by
GitHub
parent
dc1cccfecc
commit
0300d6343f
@ -1394,22 +1394,6 @@ describe("Room", function () {
|
||||
expect(name).toEqual(userB);
|
||||
});
|
||||
});
|
||||
|
||||
it("recalculates in acceptable time without heroes", function () {
|
||||
for (let i = 0; i < 5000; i++) {
|
||||
addMember(`@person${i}:bar`, KnownMembership.Join, { name: `Person ${i % 20} ${i % 10} ${i % 3}` });
|
||||
}
|
||||
|
||||
// This isn't a real performance test and has plenty of headroom because github
|
||||
// runners don't offer any kind of speed consistency guarantee, but this should at
|
||||
// least assert that the perf doesn't suddenly become n^2.
|
||||
const start = performance.now();
|
||||
for (let i = 0; i < 50; i++) {
|
||||
room.recalculate();
|
||||
}
|
||||
const duration = performance.now() - start;
|
||||
expect(duration).toBeLessThan(200);
|
||||
});
|
||||
});
|
||||
|
||||
describe("receipts", function () {
|
||||
|
Reference in New Issue
Block a user