diff options
author | Takashi Kokubun <[email protected]> | 2019-09-03 20:33:46 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-09-03 20:34:52 +0900 |
commit | afe8bf24894d742fa43bba3331470f428d819eb0 (patch) | |
tree | a407ba55100e5a02da0c547ec515a47564ee2091 /test | |
parent | 36a0c668b69d90c881246324e76cdb8889047026 (diff) |
Try extending timeout of IO.select
hoping to stabilize:
https://app.wercker.com/ruby/ruby/runs/mjit-test1/5d6df8a8a952c20008acf75b?step=5d6df90e4971a6000714c627
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_socket.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index 381b0385e5..3b2ea51b94 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -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)) |