Add latest changes from gitlab-org/gitlab@master

This commit is contained in:
GitLab Bot
2020-03-27 21:07:53 +00:00
parent e20baee820
commit f50b93c373
15 changed files with 670 additions and 12 deletions

View File

@ -85,6 +85,13 @@ describe Gitlab::UsageData, :aggregate_failures do
expect { subject }.not_to raise_error
end
it 'jira usage works when queries time out' do
allow_any_instance_of(ActiveRecord::Relation)
.to receive(:find_in_batches).and_raise(ActiveRecord::StatementInvalid.new(''))
expect { described_class.jira_usage }.not_to raise_error
end
end
describe '#usage_data_counters' do