File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change
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
+
1
8
Mon Sep 21 20:53:39 2015 tbpgr <tbpgr@tbpgr.jp>
2
9
3
10
* test/win32ole/test_win32ole_event.rb: fix typo.
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ def setup
211
211
setup_service 'ut_drb.rb'
212
212
super
213
213
@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 ) )
215
215
end
216
216
end
217
217
Original file line number Diff line number Diff line change @@ -488,15 +488,15 @@ def test_remote_array_and_hash
488
488
end
489
489
490
490
def test_take_bug_8215
491
- service = DRb . start_service ( nil , @ts_base )
491
+ service = DRb . start_service ( "druby://localhost:0" , @ts_base )
492
492
493
493
uri = service . uri
494
494
495
495
args = [ EnvUtil . rubybin , *%W[ -rdrb/drb -rdrb/eq -rrinda/ring -rrinda/tuplespace -e ] ]
496
496
497
497
take = spawn ( *args , <<-'end;' , uri )
498
498
uri = ARGV[0]
499
- DRb.start_service
499
+ DRb.start_service("druby://localhost:0")
500
500
ro = DRbObject.new_with_uri(uri)
501
501
ts = Rinda::TupleSpaceProxy.new(ro)
502
502
th = Thread.new do
@@ -512,7 +512,7 @@ def test_take_bug_8215
512
512
513
513
write = spawn ( *args , <<-'end;' , uri )
514
514
uri = ARGV[0]
515
- DRb.start_service
515
+ DRb.start_service("druby://localhost:0")
516
516
ro = DRbObject.new_with_uri(uri)
517
517
ts = Rinda::TupleSpaceProxy.new(ro)
518
518
ts.write([:test_take, 42])
@@ -531,7 +531,7 @@ def test_take_bug_8215
531
531
Process . wait ( take ) if take
532
532
end
533
533
534
- @server = DRb . primary_server || DRb . start_service
534
+ @server = DRb . primary_server || DRb . start_service ( "druby://localhost:0" )
535
535
end
536
536
537
537
module RingIPv6
You can’t perform that action at this time.
0 commit comments