Quick fix to avoid false positive in replica migration test.

This commit is contained in:
antirez 2016-05-05 09:45:31 +02:00
parent d827dbfda7
commit 0bb787d3ad

View File

@ -45,11 +45,14 @@ test "Master #0 should lose its replicas" {
} }
test "Resharding all the master #0 slots back to it" { test "Resharding all the master #0 slots back to it" {
# Wait for the cluster config to propagate before attempting a
# new resharding.
after 10000
set output [exec \ set output [exec \
../../../src/redis-trib.rb rebalance \ ../../../src/redis-trib.rb rebalance \
--weight ${master0_id}=1 \ --weight ${master0_id}=1 \
--use-empty-masters \ --use-empty-masters \
127.0.0.1:[get_instance_attrib redis 0 port]] 127.0.0.1:[get_instance_attrib redis 0 port] >@ stdout]
} }
test "Master #0 should re-acquire one or more replicas" { test "Master #0 should re-acquire one or more replicas" {