[前][次][番号順一覧][スレッド一覧]

ruby-changes:54448

From: k0kubun <ko1@a...>
Date: Mon, 31 Dec 2018 21:54:47 +0900 (JST)
Subject: [ruby-changes:54448] k0kubun:r66663 (trunk): test_io_wait.rb: try to stabilize test_wait_readable

k0kubun	2018-12-31 21:54:40 +0900 (Mon, 31 Dec 2018)

  New Revision: 66663

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66663

  Log:
    test_io_wait.rb: try to stabilize test_wait_readable
    
    that randomly fails
    https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-trunk/log/20181231T103312Z.fail.html.gz

  Modified files:
    trunk/test/io/wait/test_io_wait.rb
Index: test/io/wait/test_io_wait.rb
===================================================================
--- test/io/wait/test_io_wait.rb	(revision 66662)
+++ test/io/wait/test_io_wait.rb	(revision 66663)
@@ -83,7 +83,7 @@ class TestIOWait < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/io/wait/test_io_wait.rb#L83
   def test_wait_readable
     assert_nil @r.wait_readable(0)
     @w.syswrite "."
-    sleep 0.1
+    IO.select([@r])
     assert_equal @r, @r.wait_readable(0)
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]