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

ruby-changes:32543

From: nobu <ko1@a...>
Date: Thu, 16 Jan 2014 08:19:03 +0900 (JST)
Subject: [ruby-changes:32543] nobu:r44622 (trunk): test_rinda.rb: sleep to timeout

nobu	2014-01-16 08:18:58 +0900 (Thu, 16 Jan 2014)

  New Revision: 44622

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44622

  Log:
    test_rinda.rb: sleep to timeout
    
    * test/rinda/test_rinda.rb (test_do_reply): sleep instead of busy loop.

  Modified files:
    trunk/test/rinda/test_rinda.rb
Index: test/rinda/test_rinda.rb
===================================================================
--- test/rinda/test_rinda.rb	(revision 44621)
+++ test/rinda/test_rinda.rb	(revision 44622)
@@ -576,7 +576,7 @@ class TestRingServer < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L576
       if t < Process.clock_gettime(Process::CLOCK_MONOTONIC, :second)
         flunk "timeout during waiting call"
       end
-      Thread.pass
+      sleep 0.1
     end
 
     assert_same @ts, called

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

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