fixup random test failure
Change-Id: I053cec441623e7556d6cdfbc1d271c5cdf21aa8b
This commit is contained in:
parent
86920f3dbe
commit
5ef2e9ec00
@ -168,7 +168,8 @@ class TestReplicatorSync(test_db_replicator.TestReplicatorSync):
|
|||||||
|
|
||||||
# replicate
|
# replicate
|
||||||
part, local_node = self._get_broker_part_node(broker)
|
part, local_node = self._get_broker_part_node(broker)
|
||||||
node = random.choice([n for n in self._ring.devs if n != local_node])
|
node = random.choice([n for n in self._ring.devs
|
||||||
|
if n['id'] != local_node['id']])
|
||||||
info = broker.get_replication_info()
|
info = broker.get_replication_info()
|
||||||
success = daemon._repl_to_node(node, broker, part, info)
|
success = daemon._repl_to_node(node, broker, part, info)
|
||||||
self.assertFalse(success)
|
self.assertFalse(success)
|
||||||
|
Loading…
Reference in New Issue
Block a user