Skip to content

Commit 5fd9f6c

Browse files
committed
enable_ext analysis
1 parent bc31a28 commit 5fd9f6c

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
1010

11+
# This allows a subsequently queued workflow run to interrupt previous runs.
12+
concurrency:
13+
group: "${{ github.workflow }} @ ${{ github.ref }}"
14+
cancel-in-progress: true
15+
1116
jobs:
1217
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
1318
test_results:

test/test_helper.rb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,27 @@ def time_it
8484
end
8585
end
8686

87-
module ActiveSupport
87+
88+
module DebugSlowTests
89+
def enable_extension!(...)
90+
t0 = Minitest.clock_time
91+
super
92+
puts "enable_extension! took #{Minitest.clock_time - t0} seconds"
93+
end
94+
95+
def disable_extension!(...)
96+
t0 = Minitest.clock_time
97+
super
98+
puts "disable_extension! took #{Minitest.clock_time - t0} seconds"
99+
end
100+
end
101+
102+
103+
module ActiveRecord
88104
class TestCase
89105
include TestTimeoutHelper
106+
include DebugSlowTests
107+
extend DebugSlowTests
90108

91109
def factory(srid: 3785)
92110
RGeo::Cartesian.preferred_factory(srid: srid)

0 commit comments

Comments
 (0)