ruby-changes:63033
From: Benoit <ko1@a...>
Date: Mon, 21 Sep 2020 22:55:17 +0900 (JST)
Subject: [ruby-changes:63033] c19bcf38eb (master): Fix Thread leak in Thread#join specs
https://git.ruby-lang.org/ruby.git/commit/?id=c19bcf38eb From c19bcf38ebe4f483bdb2d76f2115eb70f056f8c6 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Mon, 21 Sep 2020 15:54:39 +0200 Subject: Fix Thread leak in Thread#join specs diff --git a/spec/ruby/core/thread/join_spec.rb b/spec/ruby/core/thread/join_spec.rb index 6477e17..06e9049 100644 --- a/spec/ruby/core/thread/join_spec.rb +++ b/spec/ruby/core/thread/join_spec.rb @@ -22,10 +22,11 @@ describe "Thread#join" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/thread/join_spec.rb#L22 end it "raises TypeError if the argument is not a valid timeout" do - t = Thread.new {sleep} + t = Thread.new { sleep } -> { 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/