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 | 8da980961ae2ad6fee4dec681b6c152945ea81fd (patch) | |
tree | 2b7f4821d3653e1d4550200f371e044149f51c25 | |
parent | ae3c0ee4fc91d757e4f230c69bdb8ad418d44d2a (diff) | |
download | ruby-8da980961ae2ad6fee4dec681b6c152945ea81fd.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
-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 |