Skip to content

Commit 0300d63

Browse files
authored
Remove flaky test (#4332)
Fixes #4331
1 parent dc1cccf commit 0300d63

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

spec/unit/room.spec.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,22 +1394,6 @@ describe("Room", function () {
13941394
expect(name).toEqual(userB);
13951395
});
13961396
});
1397-
1398-
it("recalculates in acceptable time without heroes", function () {
1399-
for (let i = 0; i < 5000; i++) {
1400-
addMember(`@person${i}:bar`, KnownMembership.Join, { name: `Person ${i % 20} ${i % 10} ${i % 3}` });
1401-
}
1402-
1403-
// This isn't a real performance test and has plenty of headroom because github
1404-
// runners don't offer any kind of speed consistency guarantee, but this should at
1405-
// least assert that the perf doesn't suddenly become n^2.
1406-
const start = performance.now();
1407-
for (let i = 0; i < 50; i++) {
1408-
room.recalculate();
1409-
}
1410-
const duration = performance.now() - start;
1411-
expect(duration).toBeLessThan(200);
1412-
});
14131397
});
14141398

14151399
describe("receipts", function () {

0 commit comments

Comments
 (0)