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)
```
https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20200209T120002Z.fail.html.gz

This change allows the test to pass.
This commit is contained in:
Yusuke Endoh 2020-02-09 21:40:53 +09:00
Родитель 26532c7e77
Коммит 6f04f0cc44
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -572,6 +572,7 @@ class TestThreadQueue < Test::Unit::TestCase
Thread.new{
loop{
Process.kill :INT, $$
sleep 0.1
}
}
puts q.pop