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
8
8
include Helper ::Distributed
9
9
10
10
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 ]
14
14
15
15
assert_equal r1 . node_for ( "foo" ) . id , r2 . node_for ( "foo" ) . id
16
16
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
7
7
include Helper ::Distributed
8
8
9
9
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 ]
11
11
12
12
100 . times do |idx |
13
13
@r . set ( idx . to_s , "foo#{ idx } " )
You can’t perform that action at this time.
0 commit comments