File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 8
8
# Allows you to run this workflow manually from the Actions tab
9
9
workflow_dispatch :
10
10
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
+
11
16
jobs :
12
17
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
13
18
test_results :
Original file line number Diff line number Diff line change @@ -84,9 +84,11 @@ def time_it
84
84
end
85
85
end
86
86
87
- module ActiveSupport
87
+ module ActiveRecord
88
88
class TestCase
89
89
include TestTimeoutHelper
90
+ include DebugSlowTests
91
+ extend DebugSlowTests
90
92
91
93
def factory ( srid : 3785 )
92
94
RGeo ::Cartesian . preferred_factory ( srid : srid )
@@ -106,3 +108,18 @@ def reset_spatial_store
106
108
end
107
109
end
108
110
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
You can’t perform that action at this time.
0 commit comments