mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_thread_queue.rb: add a wait to yield a thread
On Arch, sending a signal in a loop seems hardly to yield the execution.
```
1) Error:
TestThreadQueue#test_queue_with_trap:
Timeout::Error: execution of assert_in_out_err expired timeout (10 sec)
```
20200209
T120002Z.fail.html.gz
This change allows the test to pass.
This commit is contained in:
parent
26532c7e77
commit
6f04f0cc44
1 changed files with 1 additions and 0 deletions
|
@ -572,6 +572,7 @@ class TestThreadQueue < Test::Unit::TestCase
|
|||
Thread.new{
|
||||
loop{
|
||||
Process.kill :INT, $$
|
||||
sleep 0.1
|
||||
}
|
||||
}
|
||||
puts q.pop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue