Skip to content

Commit 4946a7e

Browse files
committed
Fix tests after 7fcefea.
1 parent 7fcefea commit 4946a7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/distributed_key_tags_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

test/distributed_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)