1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

wait until it escape handle_interrupt block

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2015-10-29 00:44:13 +00:00
parent c621f4712f
commit d90f9b1481

View file

@ -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