Fix GC.total_time
example
The result may increase actually or not, since GC can finish shorter than the timer granularity.
This commit is contained in:
parent
af59d35570
commit
ac8647bec1
Notes:
git
2021-11-30 08:50:03 +09:00
Merged: https://github.com/ruby/ruby/pull/5193 Merged-By: nobu <nobu@ruby-lang.org>
@ -9,7 +9,7 @@ ruby_version_is "3.1" do
|
||||
it "increases as collections are run" do
|
||||
time_before = GC.total_time
|
||||
GC.start
|
||||
GC.total_time.should > time_before
|
||||
GC.total_time.should >= time_before
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user