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

ruby-changes:39835

From: seki <ko1@a...>
Date: Tue, 22 Sep 2015 04:28:35 +0900 (JST)
Subject: [ruby-changes:39835] seki:r51916 (trunk): * test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]

seki	2015-09-22 04:28:14 +0900 (Tue, 22 Sep 2015)

  New Revision: 51916

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

  Log:
    * test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
      patch by voxik.
    
    * test/rinda/test_rinda.rb: ditto

  Modified files:
    trunk/ChangeLog
    trunk/test/drb/test_drb.rb
    trunk/test/rinda/test_rinda.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51915)
+++ ChangeLog	(revision 51916)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Sep 22 04:20:01 2015  Masatoshi SEKI  <m_seki@m...>
+
+	* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
+	  patch by voxik.
+
+	* test/rinda/test_rinda.rb: ditto
+
 Mon Sep 21 20:53:39 2015  tbpgr  <tbpgr@t...>
 
 	* test/win32ole/test_win32ole_event.rb: fix typo.
Index: test/rinda/test_rinda.rb
===================================================================
--- test/rinda/test_rinda.rb	(revision 51915)
+++ test/rinda/test_rinda.rb	(revision 51916)
@@ -488,7 +488,7 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L488
   end
 
   def test_take_bug_8215
-    service = DRb.start_service(nil, @ts_base)
+    service = DRb.start_service("druby://localhost:0", @ts_base)
 
     uri = service.uri
 
@@ -496,7 +496,7 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L496
 
     take = spawn(*args, <<-'end;', uri)
       uri = ARGV[0]
-      DRb.start_service
+      DRb.start_service("druby://localhost:0")
       ro = DRbObject.new_with_uri(uri)
       ts = Rinda::TupleSpaceProxy.new(ro)
       th = Thread.new do
@@ -512,7 +512,7 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L512
 
     write = spawn(*args, <<-'end;', uri)
       uri = ARGV[0]
-      DRb.start_service
+      DRb.start_service("druby://localhost:0")
       ro = DRbObject.new_with_uri(uri)
       ts = Rinda::TupleSpaceProxy.new(ro)
       ts.write([:test_take, 42])
@@ -531,7 +531,7 @@ class TupleSpaceProxyTest < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L531
     Process.wait(take)  if take
   end
 
-  @server = DRb.primary_server || DRb.start_service
+  @server = DRb.primary_server || DRb.start_service("druby://localhost:0")
 end
 
 module RingIPv6
Index: test/drb/test_drb.rb
===================================================================
--- test/drb/test_drb.rb	(revision 51915)
+++ test/drb/test_drb.rb	(revision 51916)
@@ -211,7 +211,7 @@ class TestDRbMServer < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/drb/test_drb.rb#L211
     setup_service 'ut_drb.rb'
     super
     @server = (1..3).collect do |n|
-      DRb::DRbServer.new(nil, Onecky.new(n.to_s))
+      DRb::DRbServer.new("druby://localhost:0", Onecky.new(n.to_s))
     end
   end
 

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

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