ruby-changes:57515
From: Takashi <ko1@a...>
Date: Tue, 3 Sep 2019 20:35:24 +0900 (JST)
Subject: [ruby-changes:57515] afe8bf2489 (master): Try extending timeout of IO.select
https://git.ruby-lang.org/ruby.git/commit/?id=afe8bf2489 From afe8bf24894d742fa43bba3331470f428d819eb0 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 3 Sep 2019 20:33:46 +0900 Subject: Try extending timeout of IO.select hoping to stabilize: https://app.wercker.com/ruby/ruby/runs/mjit-test1/5d6df8a8a952c20008acf75b?step=5d6df90e4971a6000714c627 diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index 381b038..3b2ea51 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -466,7 +466,8 @@ class TestSocket < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_socket.rb#L466 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)) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/