Skip to content
代码片段 群组 项目
提交 71d9b917 编辑于 作者: Simon Tomlinson's avatar Simon Tomlinson 提交者: Tiger Watson
浏览文件

Fix spec failure caused by new view added in pg14

上级 55446289
No related branches found
No related tags found
无相关合并请求
......@@ -13,8 +13,14 @@
connection.execute('CREATE EXTENSION IF NOT EXISTS pg_stat_statements;')
end
it 'returns pg_stat_statements', quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/410508' do
expect(subject.pluck('relname')).to eq(['pg_stat_statements'])
it 'returns pg_stat_statements' do
expected_views = ['pg_stat_statements']
if Gitlab::Database::Reflection.new(described_class).version.to_f >= 14
expected_views << 'pg_stat_statements_info' # View added by pg_stat_statements starting in postgres 14
end
expect(subject.pluck('relname')).to match_array(expected_views)
end
end
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册