Skip to content

Commit 0e84f98

Browse files
author
seki
committed
* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix rubyGH-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
1 parent 4dcdbb4 commit 0e84f98

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Tue Sep 22 04:20:01 2015 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
2+
3+
* test/drb/test_drb.rb: Run Rinda/DRb tests on localhost. [Fix GH-1027]
4+
patch by voxik.
5+
6+
* test/rinda/test_rinda.rb: ditto
7+
18
Mon Sep 21 20:53:39 2015 tbpgr <tbpgr@tbpgr.jp>
29

310
* test/win32ole/test_win32ole_event.rb: fix typo.

test/drb/test_drb.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def setup
211211
setup_service 'ut_drb.rb'
212212
super
213213
@server = (1..3).collect do |n|
214-
DRb::DRbServer.new(nil, Onecky.new(n.to_s))
214+
DRb::DRbServer.new("druby://localhost:0", Onecky.new(n.to_s))
215215
end
216216
end
217217

test/rinda/test_rinda.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,15 +488,15 @@ def test_remote_array_and_hash
488488
end
489489

490490
def test_take_bug_8215
491-
service = DRb.start_service(nil, @ts_base)
491+
service = DRb.start_service("druby://localhost:0", @ts_base)
492492

493493
uri = service.uri
494494

495495
args = [EnvUtil.rubybin, *%W[-rdrb/drb -rdrb/eq -rrinda/ring -rrinda/tuplespace -e]]
496496

497497
take = spawn(*args, <<-'end;', uri)
498498
uri = ARGV[0]
499-
DRb.start_service
499+
DRb.start_service("druby://localhost:0")
500500
ro = DRbObject.new_with_uri(uri)
501501
ts = Rinda::TupleSpaceProxy.new(ro)
502502
th = Thread.new do
@@ -512,7 +512,7 @@ def test_take_bug_8215
512512

513513
write = spawn(*args, <<-'end;', uri)
514514
uri = ARGV[0]
515-
DRb.start_service
515+
DRb.start_service("druby://localhost:0")
516516
ro = DRbObject.new_with_uri(uri)
517517
ts = Rinda::TupleSpaceProxy.new(ro)
518518
ts.write([:test_take, 42])
@@ -531,7 +531,7 @@ def test_take_bug_8215
531531
Process.wait(take) if take
532532
end
533533

534-
@server = DRb.primary_server || DRb.start_service
534+
@server = DRb.primary_server || DRb.start_service("druby://localhost:0")
535535
end
536536

537537
module RingIPv6

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy