From 32adae431d3f58e4103ca7ea507ee110c18e19c4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 6 Feb 2020 15:40:34 +0900 Subject: [PATCH] [ruby/spec] Just test that sleep completes --- spec/ruby/core/mutex/sleep_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/core/mutex/sleep_spec.rb b/spec/ruby/core/mutex/sleep_spec.rb index 6638f5a5a2..9832e3125e 100644 --- a/spec/ruby/core/mutex/sleep_spec.rb +++ b/spec/ruby/core/mutex/sleep_spec.rb @@ -97,7 +97,7 @@ describe "Mutex#sleep" do m.lock times.each do |time| # just testing that sleep completes - m.sleep(time).should_not == nil + -> {m.sleep(time)}.should_not raise_error end end end