diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-11-15 19:41:45 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-12-03 21:26:52 +0100 |
commit | 332fe82e45fe35a1eee2ab1f9b763d8f8b52ab60 (patch) | |
tree | 1b301f7d928941b96d177456c0fd8c6838508393 /spec/lib/gitlab/database | |
parent | 9bb7c690c40a2a35829fc05015e5afcde578c38b (diff) | |
download | gitlab-ce-332fe82e45fe35a1eee2ab1f9b763d8f8b52ab60.tar.gz |
Limit some specs to PostgreSQL only.
Diffstat (limited to 'spec/lib/gitlab/database')
-rw-r--r-- | spec/lib/gitlab/database/count_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/database/count_spec.rb b/spec/lib/gitlab/database/count_spec.rb index 90a82aadc7c..d4386c2ca26 100644 --- a/spec/lib/gitlab/database/count_spec.rb +++ b/spec/lib/gitlab/database/count_spec.rb @@ -86,7 +86,7 @@ describe Gitlab::Database::Count do describe Gitlab::Database::Count::ReltuplesCountStrategy do subject { described_class.new(models).count } - describe '#count' do + describe '#count', :postgresql do context 'when reltuples is up to date' do before do ActiveRecord::Base.connection.execute('ANALYZE projects') @@ -128,7 +128,7 @@ describe Gitlab::Database::Count do subject { strategy.count } let(:strategy) { described_class.new(models) } - describe '#count' do + describe '#count', :postgresql do let(:estimates) { { Project => threshold + 1, Identity => threshold - 1 } } let(:threshold) { Gitlab::Database::Count::TablesampleCountStrategy::EXACT_COUNT_THRESHOLD } |