Flaky test ee/spec/migrations/set_resolved_state_on_vulnerabilities_spec.rb:136 # SetResolvedStateOnVulnerabilities#up sets "resolved" state only for resolved vulnerabilities
Job #961908171 failed for 1cc51c95:
1) SetResolvedStateOnVulnerabilities#up sets "resolved" state only for resolved vulnerabilities
Failure/Error:
expect(find(vulnerability_resolved_id)).to(
have_attributes(state: states[:resolved], resolved_by_id: closer_id, resolved_at: be_like_time(Time.current)))
expected #<#<Class:0x00005631512c1ab8> id: 2, milestone_id: nil, epic_id: nil, project_id: 1, author_id: 1, up...ersion: nil, resolved_by_id: 2, resolved_at: "2021-01-13 22:34:11", closed_by_id: 2, closed_at: nil> to have attributes {:resolved_at => (within one second of 2021-01-13 22:34:10 UTC), :resolved_by_id => 2, :state => 3} but had attributes {:resolved_at => 2021-01-13 22:34:11.055794000 +0000, :resolved_by_id => 2, :state => 3}
Diff:
@@ -1 +1 @@
-:resolved_at => (within one second of 2021-01-13 22:34:10 UTC),
+:resolved_at => 2021-01-13 22:34:11.055794000 +0000,
Edited by Albert Salim