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

Try extending timeout of IO.select

hoping to stabilize:
https://app.wercker.com/ruby/ruby/runs/mjit-test1/5d6df8a8a952c20008acf75b?step=5d6df90e4971a6000714c627
This commit is contained in:
Takashi Kokubun 2019-09-03 20:33:46 +09:00
parent 36a0c668b6
commit afe8bf2489
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -466,7 +466,8 @@ class TestSocket < Test::Unit::TestCase
end while IO.select([r], nil, nil, 0.1).nil? end while IO.select([r], nil, nil, 0.1).nil?
n n
end end
assert_equal([[s1],[],[]], IO.select([s1], nil, nil, 30)) timeout = (RubyVM::MJIT.enabled? ? 120 : 30) # for --jit-wait
assert_equal([[s1],[],[]], IO.select([s1], nil, nil, timeout))
msg, _, _, stamp = s1.recvmsg msg, _, _, stamp = s1.recvmsg
assert_equal("a", msg) assert_equal("a", msg)
assert(stamp.cmsg_is?(:SOCKET, type)) assert(stamp.cmsg_is?(:SOCKET, type))