1
0
Fork 0
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:
Nobuyoshi Nakada 2021-11-30 08:49:41 +09:00 committed by GitHub
parent af59d35570
commit ac8647bec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>

View file

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