Commit 332fe82e authored by Andreas Brandl's avatar Andreas Brandl

Limit some specs to PostgreSQL only.

parent 9bb7c690
...@@ -86,7 +86,7 @@ describe Gitlab::Database::Count do ...@@ -86,7 +86,7 @@ describe Gitlab::Database::Count do
describe Gitlab::Database::Count::ReltuplesCountStrategy do describe Gitlab::Database::Count::ReltuplesCountStrategy do
subject { described_class.new(models).count } subject { described_class.new(models).count }
describe '#count' do describe '#count', :postgresql do
context 'when reltuples is up to date' do context 'when reltuples is up to date' do
before do before do
ActiveRecord::Base.connection.execute('ANALYZE projects') ActiveRecord::Base.connection.execute('ANALYZE projects')
...@@ -128,7 +128,7 @@ describe Gitlab::Database::Count do ...@@ -128,7 +128,7 @@ describe Gitlab::Database::Count do
subject { strategy.count } subject { strategy.count }
let(:strategy) { described_class.new(models) } let(:strategy) { described_class.new(models) }
describe '#count' do describe '#count', :postgresql do
let(:estimates) { { Project => threshold + 1, Identity => threshold - 1 } } let(:estimates) { { Project => threshold + 1, Identity => threshold - 1 } }
let(:threshold) { Gitlab::Database::Count::TablesampleCountStrategy::EXACT_COUNT_THRESHOLD } let(:threshold) { Gitlab::Database::Count::TablesampleCountStrategy::EXACT_COUNT_THRESHOLD }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment