Skip to content

Fix flaky spec for epic work item validation

Nicolas Dular requested to merge nd/fix-flaky-spec into master

What does this MR do and why?

It can happen that the work_item and the epic have different updated_at values. In EpicWorkItemSync::Diff we account for this and allow a certain time difference.

However, when the threshold exceeds, it can happen that updated_at is part of the the mismatched_attributes.

We cover this as part of the EpicWorkItemSync::Diff tests already. To not have a flaky spec again in the Worker, we only ensure that the title and lock_version attributes are part of the mismatched_attributes instead of a strict match of the array.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports