From d90f9b1481d52b91de7e0795677f558ddece2b37 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 29 Oct 2015 00:44:13 +0000 Subject: wait until it escape handle_interrupt block git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_thread.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb index 48a6bd2e38..d076494cdf 100644 --- a/test/ruby/test_thread.rb +++ b/test/ruby/test_thread.rb @@ -646,8 +646,8 @@ class TestThread < Test::Unit::TestCase end } } - assert_raise(e) {r = :wait; sleep 1} - assert_raise(RuntimeError) {th.join(0)} + assert_raise(e) {r = :wait; sleep 0.2} + assert_raise(RuntimeError) {th.join(0.2)} ensure th.kill end -- cgit v1.2.3