diff options
author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-10-06 13:21:47 +0200 |
---|---|---|
committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-10-06 14:13:13 +0200 |
commit | 043f899b2a90f91f95b902316ad200759b3cdc7c (patch) | |
tree | e1253d06a87f060f0aefe72a850778a298a51680 /spec/models | |
parent | 50c9a09a04048d5d46163fb97be34a739708e7ca (diff) | |
download | gitlab-ce-043f899b2a90f91f95b902316ad200759b3cdc7c.tar.gz |
Rails 5: fix mysql milliseconds problems in scheduled build specs
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index cebc822d525..a046541031e 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -261,7 +261,7 @@ describe Ci::Build do it 'schedules BuildScheduleWorker at the right time' do Timecop.freeze do expect(Ci::BuildScheduleWorker) - .to receive(:perform_at).with(1.minute.since, build.id) + .to receive(:perform_at).with(be_like_time(1.minute.since), build.id) subject end |