diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7acc60e2..d6cb8287 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,9 +44,9 @@ jobs: fail-fast: false matrix: # https://ruby-lang.org/en/downloads/branches - ruby: ["3.3", "3.2", "3.1"] + ruby: ["3.3"] # https://www.postgresql.org/support/versioning/ - pg: [12-master, 13-master, 14-master, 15-master, 16-master] + pg: [16-master] steps: - name: Set Up Actions uses: actions/checkout@v4 diff --git a/test/test_helper.rb b/test/test_helper.rb index 24ae171c..cd650116 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -135,3 +135,15 @@ def reset_spatial_store end end end + +conn = SpatialModel.lease_connection.instance_variable_get(:@raw_connection) +$count = conn.conninfo_hash[:port].count(",")+1 + +TracePoint.trace(:call) do |tp| + conn = SpatialModel.lease_connection.instance_variable_get(:@raw_connection) + count = conn.conninfo_hash[:port].count(",")+1 + next if count == $count + + $count = count + puts "port(count=#{count}): #{conn.conninfo_hash[:port][0, 100]}" +end