mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-30 22:55:29 +08:00
* Fix flaky TestSharedChannelPostMetadataSync STEP 6 incorrectly required Cluster A to receive sync traffic after a resync trigger. When echo prevention suppresses unchanged acknowledgement payloads, no message arrives and the Eventually timeout fails. Wait for pending sync tasks, assert the DB still has exactly one acknowledgement, and only validate sync payload duplicates when traffic is received. Tests-only change. Verified with `go test -run '^TestSharedChannelPostMetadataSync$' -race -count=50` locally. Co-authored-by: mattermost-code <matty-code@mattermost.com> * Assert sync payload ack count outside muA lock Copy the matching post under muA before calling require.Len so a failed assertion cannot leave the mutex locked and hang teardown. Co-authored-by: mattermost-code <matty-code@mattermost.com> * Retrigger CI after Playwright infra flake Co-authored-by: mattermost-code <matty-code@mattermost.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: mattermost-code <matty-code@mattermost.com>