Fix broken specs on MySQL after https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6896
This commit is contained in:
parent
5c9a54d65f
commit
009da2fc80
1 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ describe PipelineMetricsWorker do
|
|||
it 'records the build start time' do
|
||||
subject
|
||||
|
||||
expect(merge_request.reload.metrics.latest_build_started_at).to eq(pipeline.started_at)
|
||||
expect(merge_request.reload.metrics.latest_build_started_at).to be_within(1.second).of(pipeline.started_at)
|
||||
end
|
||||
|
||||
it 'clears the build end time' do
|
||||
|
@ -39,7 +39,7 @@ describe PipelineMetricsWorker do
|
|||
it 'records the build end time' do
|
||||
subject
|
||||
|
||||
expect(merge_request.reload.metrics.latest_build_finished_at).to eq(pipeline.finished_at)
|
||||
expect(merge_request.reload.metrics.latest_build_finished_at).to be_within(1.second).of(pipeline.finished_at)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue