diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-07-24 20:00:34 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-07-24 20:00:34 +0300 |
commit | 259493bb4cbce2ab48b7e9b959430888dc9f9d8b (patch) | |
tree | 7af4fe63145be0f15f6b14f8ba6d5949331fa39c /spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb | |
parent | 25698fda236d3ab2c5327d3acd1f9fde6f2b5e04 (diff) |
Enable tablesample count strategy by default
https://gitlab.com/gitlab-org/gitlab-ce/issues/58792
Diffstat (limited to 'spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb')
-rw-r--r-- | spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb b/spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb index 40d810b195b..a57f033b5ed 100644 --- a/spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb +++ b/spec/lib/gitlab/database/count/tablesample_count_strategy_spec.rb @@ -56,22 +56,4 @@ describe Gitlab::Database::Count::TablesampleCountStrategy do end end end - - describe '.enabled?' do - before do - stub_feature_flags(tablesample_counts: true) - end - - it 'is enabled for PostgreSQL' do - allow(Gitlab::Database).to receive(:postgresql?).and_return(true) - - expect(described_class.enabled?).to be_truthy - end - - it 'is disabled for MySQL' do - allow(Gitlab::Database).to receive(:postgresql?).and_return(false) - - expect(described_class.enabled?).to be_falsey - end - end end |