From ac8647bec12d5d3c0bc4b6a79d09a6a85d6628f1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 30 Nov 2021 08:49:41 +0900 Subject: Fix `GC.total_time` example The result may increase actually or not, since GC can finish shorter than the timer granularity. --- spec/ruby/core/gc/total_time_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/ruby/core/gc') diff --git a/spec/ruby/core/gc/total_time_spec.rb b/spec/ruby/core/gc/total_time_spec.rb index 9b4f16e603..fcc8f45a83 100644 --- a/spec/ruby/core/gc/total_time_spec.rb +++ b/spec/ruby/core/gc/total_time_spec.rb @@ -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 -- cgit v1.2.3