Commit c7d01d56 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fix-flaky-deployment_metrics_spec' into 'master'

Fix a flaky unit test

See merge request gitlab-org/gitlab!24502
parents 33232cde 8a00e900
......@@ -87,7 +87,7 @@ describe DeploymentMetrics do
expect(prometheus_adapter).to receive(:query).with(:deployment, deployment).and_return(simple_metrics)
end
it { is_expected.to eq(simple_metrics.merge({ deployment_time: deployment.created_at.to_i })) }
it { is_expected.to eq(simple_metrics.merge({ deployment_time: deployment.finished_at.to_i })) }
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment