Skip to content

Commit afeab02

Browse files
committed
enable_ext analysis
1 parent bc31a28 commit afeab02

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-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: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ def time_it
8484
end
8585
end
8686

87-
module ActiveSupport
87+
module ActiveRecord
8888
class TestCase
8989
include TestTimeoutHelper
90+
include DebugSlowTests
91+
extend DebugSlowTests
9092

9193
def factory(srid: 3785)
9294
RGeo::Cartesian.preferred_factory(srid: srid)
@@ -106,3 +108,18 @@ def reset_spatial_store
106108
end
107109
end
108110
end
111+
112+
113+
module DebugSlowTests
114+
def enable_extension!(...)
115+
t0 = Minitest.clock_time
116+
super
117+
puts "enable_extension! took #{Minitest.clock_time - t0} seconds"
118+
end
119+
120+
def disable_extension!(...)
121+
t0 = Minitest.clock_time
122+
super
123+
puts "disable_extension! took #{Minitest.clock_time - t0} seconds"
124+
end
125+
end

0 commit comments

Comments
 (0)