0001-Enforce-localhost-for-DRb-tests.patch

Fix the test suite by enforcing localhost - Vit Ondruch, 11/08/2012 11:03 PM

Download (1.66 KB)

View differences:

test/drb/ut_array.rb
8 8
    it
9 9
  end
10 10

  
11
  DRb.start_service(nil, [1, 2, 'III', 4, "five", 6])
11
  DRb.start_service('druby://localhost:0', [1, 2, 'III', 4, "five", 6])
12 12
  es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
13 13
  DRb.thread.join
14 14
end
test/drb/ut_array_drbssl.rb
28 28
  config[:SSLCertName] =
29 29
    [ ["C","JP"], ["O","Foo.DRuby.Org"], ["CN", "Sample"] ]
30 30

  
31
  DRb.start_service('drbssl://:0', [1, 2, 'III', 4, "five", 6], config)
31
  DRb.start_service('drbssl://localhost:0', [1, 2, 'III', 4, "five", 6], config)
32 32
  es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
33 33
  DRb.thread.join
34 34
end
test/drb/ut_eq.rb
24 24
    it
25 25
  end
26 26

  
27
  DRb.start_service('druby://:0', Bar.new)
27
  DRb.start_service('druby://localhost:0', Bar.new)
28 28
  es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
29 29
  DRb.thread.join
30 30
end
31
-