summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-01-25 11:55:11 +0100
committerJames Lopez <james@jameslopez.es>2017-01-25 11:55:11 +0100
commit3263fd9a73d22ef7e7c02305ed9e0717a7f386d0 (patch)
tree148b490407cde49a08f488c65c9ecef2b69764a5 /spec/requests
parent1e64882da165bc872f5ce487775addf7347779f2 (diff)
downloadgitlab-ce-3263fd9a73d22ef7e7c02305ed9e0717a7f386d0.tar.gz
Fix spec failure due to timestamp ordering issue in mySQL
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/projects/cycle_analytics_events_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/requests/projects/cycle_analytics_events_spec.rb b/spec/requests/projects/cycle_analytics_events_spec.rb
index 72978846e93..28b485e4b15 100644
--- a/spec/requests/projects/cycle_analytics_events_spec.rb
+++ b/spec/requests/projects/cycle_analytics_events_spec.rb
@@ -13,7 +13,12 @@ describe 'cycle analytics events' do
allow_any_instance_of(Gitlab::ReferenceExtractor).to receive(:issues).and_return([issue])
- 3.times { create_cycle }
+ 3.times do |count|
+ Timecop.freeze(Time.now + count.days) do
+ create_cycle
+ end
+ end
+
deploy_master
login_as(user)