summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-21 19:28:14 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-21 19:28:14 +0000
commit0e84f98d0de13a644469fbb145ecccc1b25d62df (patch)
tree646b9ca27eb36b5f4841322b3f4efea89f871682 /test/rinda
parent4dcdbb4afcd99ce20dc7fd46dc712cf7ff25a36e (diff)
* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
patch by voxik. * test/rinda/test_rinda.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index 8f78ca9f4f3..e0b92e690c0 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -488,7 +488,7 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
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::TestCase
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::TestCase
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::TestCase
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