diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-09-21 16:22:04 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-09-21 16:22:04 +0200 |
commit | 82998918efa3a637c80e135198b573cfcb31acd9 (patch) | |
tree | 35d37cb05261bcac266d192d371aa03c33d7f814 /spec | |
parent | 2b73e6ba712d35e6ec767bf722edf542cc2e47c6 (diff) |
Make Thread#join always convert its argument, as before 70f08f1eed
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/thread/join_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/ruby/core/thread/join_spec.rb b/spec/ruby/core/thread/join_spec.rb index 06e9049808..213fe2e505 100644 --- a/spec/ruby/core/thread/join_spec.rb +++ b/spec/ruby/core/thread/join_spec.rb @@ -22,11 +22,10 @@ describe "Thread#join" do end it "raises TypeError if the argument is not a valid timeout" do - t = Thread.new { sleep } + t = Thread.new { } + t.join -> { t.join(:foo) }.should raise_error TypeError -> { t.join("bar") }.should raise_error TypeError - t.kill - t.join end it "returns nil if it is not finished when given a timeout" do |