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

Extend sleep before sending USR1 in TestProcess

just like 076f3fcf11.

This test also hanged on Travis osx
https://travis-ci.org/ruby/ruby/jobs/567547060
This commit is contained in:
Takashi Kokubun 2019-08-04 23:41:33 +09:00
parent 164f1ac0e9
commit aaf69a8ba8
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -688,7 +688,7 @@ class TestProcess < Test::Unit::TestCase
system("cat", :in => "fifo")
EOS
assert_equal("start\n", io.gets)
sleep 0.2 # wait for the child to stop at opening "fifo"
sleep 3 # wait for the child to stop at opening "fifo"
Process.kill(:USR1, io.pid)
assert_equal("trap\n", io.readpartial(8))
File.write("fifo", "ok\n")