Commit 8a00e900 authored by Rémy Coutable's avatar Rémy Coutable

Fix a flaky unit test

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent bfa25b35
...@@ -87,7 +87,7 @@ describe DeploymentMetrics do ...@@ -87,7 +87,7 @@ describe DeploymentMetrics do
expect(prometheus_adapter).to receive(:query).with(:deployment, deployment).and_return(simple_metrics) expect(prometheus_adapter).to receive(:query).with(:deployment, deployment).and_return(simple_metrics)
end 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
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