Skip to content

Commit

Permalink
Make synchronize_sql extension specs work with timed_queue connection…
Browse files Browse the repository at this point in the history
… pool
  • Loading branch information
jeremyevans committed Jun 9, 2023
1 parent d9d2e8a commit 8b87432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/extensions/synchronize_sql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def literal_string_append(sql, v)
before do
@db = Sequel.mock
@db.pool.extend(Module.new do
def assign_connection(*args)
def acquire(*args)
r = super
@times_connection_acquired ||= 0
@times_connection_acquired += 1 if r
Expand Down

0 comments on commit 8b87432

Please sign in to comment.