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

ruby-changes:27840

From: drbrain <ko1@a...>
Date: Sun, 24 Mar 2013 04:13:47 +0900 (JST)
Subject: [ruby-changes:27840] drbrain:r39892 (trunk): * test/rinda/test_rinda.rb: Fixed test failures in r39890 and r39890

drbrain	2013-03-24 04:13:37 +0900 (Sun, 24 Mar 2013)

  New Revision: 39892

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

  Log:
    * test/rinda/test_rinda.rb:  Fixed test failures in r39890 and r39890
      due to stopping DRb service.

  Modified files:
    trunk/ChangeLog
    trunk/test/rinda/test_rinda.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39891)
+++ ChangeLog	(revision 39892)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Mar 24 04:13:27 2013  Eric Hodel  <drbrain@s...>
+
+	* test/rinda/test_rinda.rb:  Fixed test failures in r39890 and r39890
+	  due to stopping DRb service.
+
 Sun Mar 24 03:34:02 2013  Eric Hodel  <drbrain@s...>
 
 	* lib/rinda/rinda.rb:  Fixed loss of tuple when remote is alive but the
Index: test/rinda/test_rinda.rb
===================================================================
--- test/rinda/test_rinda.rb	(revision 39891)
+++ test/rinda/test_rinda.rb	(revision 39892)
@@ -478,13 +478,11 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L478
   end
 
   def test_take_bug_8215
-    DRb.stop_service
     service = DRb.start_service(nil, @ts_base)
 
     uri = service.uri
 
     take = fork do
-      DRb.stop_service
       DRb.start_service
       ro = DRbObject.new_with_uri(uri)
       ts = Rinda::TupleSpaceProxy.new(ro)
@@ -500,7 +498,6 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L498
     @ts_base.take([:barrier, :continue])
 
     write = fork do
-      DRb.stop_service
       DRb.start_service
       ro = DRbObject.new_with_uri(uri)
       ts = Rinda::TupleSpaceProxy.new(ro)
@@ -514,7 +511,6 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L511
   ensure
     Process.kill("TERM", write) if write && status.nil?
     Process.kill("TERM", take)  if take
-    service.stop_service
   end
 
   @server = DRb.primary_server || DRb.start_service

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

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