1
0
Fork 0
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)
```
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
parent 26532c7e77
commit 6f04f0cc44

View file

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