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:
parent
36a0c668b6
commit
afe8bf2489
1 changed files with 2 additions and 1 deletions
|
@ -466,7 +466,8 @@ class TestSocket < Test::Unit::TestCase
|
|||
end while IO.select([r], nil, nil, 0.1).nil?
|
||||
n
|
||||
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
|
||||
assert_equal("a", msg)
|
||||
assert(stamp.cmsg_is?(:SOCKET, type))
|
||||
|
|
Loading…
Reference in a new issue