Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/unit/execution_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def test_active_record_instrumention_expiry
instrumented_cache = lookup_store(expiry_batch_size: 2)
uninstrumented_cache = lookup_store(active_record_instrumentation: false, expiry_batch_size: 2)
calls = 0
sql = []
callback = ->(*args) {
sql << args[-1][:sql]
calls += 1
}

Expand Down Expand Up @@ -101,6 +103,9 @@ def test_active_record_instrumention_expiry
wait_for_background_tasks(instrumented_cache)
end
end
rescue Exception
puts sql.join("\n")
raise
end

unless ENV["NO_CONNECTS_TO"]
Expand Down