diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-06 15:40:34 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-06 15:42:16 +0900 |
commit | 32adae431d3f58e4103ca7ea507ee110c18e19c4 (patch) | |
tree | 9f41197c87c3a379da12463d46510defc6c314be /spec | |
parent | 3d83e641b1a6e13e0e0a59c19536e1dde96891f4 (diff) | |
download | ruby-32adae431d3f58e4103ca7ea507ee110c18e19c4.tar.gz |
[ruby/spec] Just test that sleep completes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/mutex/sleep_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |