Commit c0aa7533 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add a test case for off-by-one error in transaction context

parent e09cbde6
...@@ -100,7 +100,7 @@ RSpec.describe Gitlab::Database::Transaction::Context do ...@@ -100,7 +100,7 @@ RSpec.describe Gitlab::Database::Transaction::Context do
context 'when savepoints count exceeds threshold' do context 'when savepoints count exceeds threshold' do
before do before do
data[:savepoints] = described_class::LOG_SAVEPOINTS_THRESHOLD + 1 data[:savepoints] = 1
end end
it_behaves_like 'logs transaction data' it_behaves_like 'logs transaction data'
......
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