Skip to content

Commit

Permalink
enable_ext analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Sep 5, 2024
1 parent bc31a28 commit 5fd9f6c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# This allows a subsequently queued workflow run to interrupt previous runs.
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref }}"
cancel-in-progress: true

jobs:
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
test_results:
Expand Down
20 changes: 19 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,27 @@ def time_it
end
end

module ActiveSupport

module DebugSlowTests
def enable_extension!(...)
t0 = Minitest.clock_time
super
puts "enable_extension! took #{Minitest.clock_time - t0} seconds"
end

def disable_extension!(...)
t0 = Minitest.clock_time
super
puts "disable_extension! took #{Minitest.clock_time - t0} seconds"
end
end


module ActiveRecord
class TestCase
include TestTimeoutHelper
include DebugSlowTests
extend DebugSlowTests

def factory(srid: 3785)
RGeo::Cartesian.preferred_factory(srid: srid)
Expand Down

0 comments on commit 5fd9f6c

Please sign in to comment.