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/lib | |
parent | 50c9a09a04048d5d46163fb97be34a739708e7ca (diff) | |
download | gitlab-ce-043f899b2a90f91f95b902316ad200759b3cdc7c.tar.gz |
Rails 5: fix mysql milliseconds problems in scheduled build specs
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/ci/status/build/scheduled_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/ci/status/build/scheduled_spec.rb b/spec/lib/gitlab/ci/status/build/scheduled_spec.rb index 3098a17c50d..f98183d6d18 100644 --- a/spec/lib/gitlab/ci/status/build/scheduled_spec.rb +++ b/spec/lib/gitlab/ci/status/build/scheduled_spec.rb @@ -17,7 +17,7 @@ describe Gitlab::Ci::Status::Build::Scheduled do let(:build) { create(:ci_build, scheduled_at: 1.minute.since, project: project) } it 'shows execute_in of the scheduled job' do - Timecop.freeze do + Timecop.freeze(Time.now.change(usec: 0)) do expect(subject.status_tooltip).to include('00:01:00') end end |