mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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>
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue