Commit 57cb82cb authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'rails5-fix-mysql-milliseconds-project-import-state-spec' into 'master'

Rails5: fix mysql milliseconds problem in project_import_state_spec

See merge request gitlab-org/gitlab-ee!6874
parents 21b176e6 58c447dc
---
title: 'Rails5: fix mysql milliseconds problem in project_import_state_spec'
merge_request: 6874
author: Jasper Maes
type: fixed
......@@ -6,7 +6,7 @@ describe ProjectImportState, type: :model do
Timecop.freeze(Time.now) do
import_state = create(:import_state, :mirror)
expect(import_state.next_execution_timestamp).to eq(Time.now)
expect(import_state.next_execution_timestamp).to be_like_time(Time.now)
end
end
end
......@@ -29,7 +29,7 @@ describe ProjectImportState, type: :model do
describe '#set_next_execution_timestamp' do
let(:import_state) { create(:import_state, :mirror, :finished) }
let!(:timestamp) { Time.now }
let!(:timestamp) { Time.now.change(usec: 0) }
let!(:jitter) { 2.seconds }
before do
......
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