Files
mattermost/server
508f1551e3 Fix flaky TestScrubPost (#36686)
The should_preserve_non-content_fields subtest asserted UpdateAt was
unchanged after scrubPost, but scrubPost refreshes UpdateAt via
model.GetMillis(). When the scrub runs in a later millisecond than the
fixture setup, the strict equality fails intermittently.

Align the assertion with scrubPost behavior (UpdateAt >= pre-scrub value).

Tests-only change. Verified with `go test -run '^TestScrubPost$' -race
-count=100` and 10000 runs of the subtest locally.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
2026-05-25 09:13:25 +05:30
..
2026-05-25 09:13:25 +05:30
2026-05-20 13:21:14 -03:00
2026-04-21 02:33:20 -07:00