Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11661 from matrix-org/andybalaam/fix-receipt-flakes
Browse files Browse the repository at this point in the history
Fix flaky receipt and redaction tests by pausing between message sends
  • Loading branch information
andybalaam authored Sep 28, 2023
2 parents 58afa90 + d7d0f54 commit 8014ceb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cypress/e2e/read-receipts/read-receipts-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ export function sendMessageAsClient(cli: MatrixClient, room: string, messages: M
await message.performAction(cli, room);
}
});
// TODO: without this wait, some tests that send lots of messages flake
// from time to time. I (andyb) have done some investigation, but it
// needs more work to figure out. The messages do arrive over sync, but
// they never appear in the timeline, and they never fire a
// Room.timeline event. I think this only happens with events that refer
// to other events (e.g. replies), so it might be caused by the
// referring event arriving before the referred-to event.
cy.wait(200);
}
}

Expand Down

0 comments on commit 8014ceb

Please sign in to comment.