Skip to content
Snippets Groups Projects
Commit 3fd304c1 authored by Stan Hu's avatar Stan Hu
Browse files

Fix spec Don't attempt to disable statement timeout on a MySQL DB

parent f700f3ec
No related branches found
No related tags found
No related merge requests found
Loading
@@ -13,6 +13,10 @@ describe Gitlab::Database::MigrationHelpers, lib: true do
Loading
@@ -13,6 +13,10 @@ describe Gitlab::Database::MigrationHelpers, lib: true do
context 'outside a transaction' do context 'outside a transaction' do
before do before do
expect(model).to receive(:transaction_open?).and_return(false) expect(model).to receive(:transaction_open?).and_return(false)
unless Gitlab::Database.postgresql?
allow_any_instance_of(Gitlab::Database::MigrationHelpers).to receive(:disable_statement_timeout)
end
end end
   
context 'using PostgreSQL' do context 'using PostgreSQL' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment