mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use Thread.pass in loop{} to check interrupts more often
* The spec now runs in ~5ms vs ~100ms before. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
067066fc9b
commit
66058dd546
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ describe "Thread#raise on a running thread" do
|
|||
1/0
|
||||
rescue ZeroDivisionError
|
||||
raised = true
|
||||
loop { }
|
||||
loop { Thread.pass }
|
||||
end
|
||||
end
|
||||
begin
|
||||
|
|
Loading…
Add table
Reference in a new issue