explicitly return from run() under minitest (metrics were printed with the previous solution)

This commit is contained in:
Gonçalo Silva
2011-05-08 04:20:14 +01:00
parent aec7456f81
commit 181c8422d7
2 changed files with 3 additions and 1 deletions

View File

@@ -51,6 +51,8 @@ module ActiveSupport
end
end
end
return
end
def run_test(metric, mode)

View File

@@ -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],