mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
explicitly return from run() under minitest (metrics were printed with the previous solution)
This commit is contained in:
@@ -51,6 +51,8 @@ module ActiveSupport
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
def run_test(metric, mode)
|
||||
|
||||
@@ -10,7 +10,7 @@ module ActiveSupport
|
||||
module Performance
|
||||
DEFAULTS.merge!(
|
||||
if ARGV.include?('--benchmark')
|
||||
{:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time]}
|
||||
{ :metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time] }
|
||||
else
|
||||
{ :min_percent => 0.01,
|
||||
:metrics => [:process_time, :memory, :objects],
|
||||
|
||||
Reference in New Issue
Block a user