Commit a6995970 authored by Felipe Artur's avatar Felipe Artur

Fix mysql specs

parent d3121501
...@@ -169,7 +169,7 @@ module EE ...@@ -169,7 +169,7 @@ module EE
# epic2 - parent: epic1 # epic2 - parent: epic1
# Returns: 2 # Returns: 2
def deepest_relationship_level def deepest_relationship_level
return nil unless ::Gitlab::Database.postgresql? return unless ::Gitlab::Database.postgresql?
result = result =
ActiveRecord::Base.connection.execute( ActiveRecord::Base.connection.execute(
......
...@@ -54,7 +54,6 @@ describe Gitlab::UsageData do ...@@ -54,7 +54,6 @@ describe Gitlab::UsageData do
expect(count_data.keys).to include(*%i( expect(count_data.keys).to include(*%i(
projects_mirrored_with_pipelines_enabled projects_mirrored_with_pipelines_enabled
epics epics
epics_deepest_relationship_level
geo_nodes geo_nodes
ldap_group_links ldap_group_links
ldap_keys ldap_keys
......
...@@ -443,7 +443,7 @@ describe Epic do ...@@ -443,7 +443,7 @@ describe Epic do
end end
end end
describe '.deepest_relationship_level' do describe '.deepest_relationship_level', :postgresql do
it 'returns the deepest relationship level between epics' do it 'returns the deepest relationship level between epics' do
group_1 = create(:group) group_1 = create(:group)
group_2 = create(:group) group_2 = create(:group)
......
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