Limit some specs to PostgreSQL only.

This commit is contained in:
Andreas Brandl 2018-11-15 19:41:45 +01:00
parent 9bb7c690c4
commit 332fe82e45
No known key found for this signature in database
GPG Key ID: F25982B13FEE55DA
1 changed files with 2 additions and 2 deletions

View File

@ -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 }