diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-29 00:44:13 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-29 00:44:13 +0000 |
commit | d90f9b1481d52b91de7e0795677f558ddece2b37 (patch) | |
tree | 2b7f4821d3653e1d4550200f371e044149f51c25 /test/ruby | |
parent | c621f4712ff72257c83192bbce150168bafe47fe (diff) | |
download | ruby-d90f9b1481d52b91de7e0795677f558ddece2b37.tar.gz |
wait until it escape handle_interrupt block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_thread.rb | 4 |
1 files 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 |