Skip to content

Commit 84c895e

Browse files
committed
feat: Perform GC before running each test
1 parent 369807e commit 84c895e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/appmap/minitest.rb

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class ::Minitest::Test
142142
alias run_without_hook run
143143

144144
def run
145+
GC.start
145146
AppMap::Minitest.begin_test self, name
146147
begin
147148
run_without_hook

lib/appmap/rspec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def initialize(example)
8787
end
8888

8989
warn "Starting recording of example #{example}@#{source_location}" if AppMap::RSpec::LOG
90+
GC.start
9091
@trace = AppMap.tracing.trace
9192
@webdriver_port = webdriver_port.()
9293
end

0 commit comments

Comments
 (0)