зеркало из https://github.com/github/ruby.git
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:
Родитель
af59d35570
Коммит
ac8647bec1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче