Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Maes <jaspermaes.jm@gmail.com>2018-10-06 14:21:47 +0300
committerJasper Maes <jaspermaes.jm@gmail.com>2018-10-06 15:13:13 +0300
commit043f899b2a90f91f95b902316ad200759b3cdc7c (patch)
treee1253d06a87f060f0aefe72a850778a298a51680 /spec/lib/gitlab/ci/status
parent50c9a09a04048d5d46163fb97be34a739708e7ca (diff)
Rails 5: fix mysql milliseconds problems in scheduled build specs
Diffstat (limited to 'spec/lib/gitlab/ci/status')
-rw-r--r--spec/lib/gitlab/ci/status/build/scheduled_spec.rb2
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