File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ class TestDistributedKeyTags < Test::Unit::TestCase
88 include Helper ::Distributed
99
1010 def test_hashes_consistently
11- r1 = Redis ::Distributed . new [ "redis://127.0.0.1 :#{ PORT } /15" , *NODES ]
12- r2 = Redis ::Distributed . new [ "redis://127.0.0.1 :#{ PORT } /15" , *NODES ]
13- r3 = Redis ::Distributed . new [ "redis://127.0.0.1 :#{ PORT } /15" , *NODES ]
11+ r1 = Redis ::Distributed . new [ "redis://localhost :#{ PORT } /15" , *NODES ]
12+ r2 = Redis ::Distributed . new [ "redis://localhost :#{ PORT } /15" , *NODES ]
13+ r3 = Redis ::Distributed . new [ "redis://localhost :#{ PORT } /15" , *NODES ]
1414
1515 assert_equal r1 . node_for ( "foo" ) . id , r2 . node_for ( "foo" ) . id
1616 assert_equal r1 . node_for ( "foo" ) . id , r3 . node_for ( "foo" ) . id
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class TestDistributed < Test::Unit::TestCase
77 include Helper ::Distributed
88
99 def test_handle_multiple_servers
10- @r = Redis ::Distributed . new [ "redis://127.0.0.1 :#{ PORT } /15" , *NODES ]
10+ @r = Redis ::Distributed . new [ "redis://localhost :#{ PORT } /15" , *NODES ]
1111
1212 100 . times do |idx |
1313 @r . set ( idx . to_s , "foo#{ idx } " )
You can’t perform that action at this time.
0 commit comments