From 5ef2e9ec00b1498fb411fc918b71ae9c50b1308f Mon Sep 17 00:00:00 2001 From: Clay Gerrard Date: Tue, 14 Apr 2015 15:24:58 -0700 Subject: [PATCH] fixup random test failure Change-Id: I053cec441623e7556d6cdfbc1d271c5cdf21aa8b --- test/unit/container/test_replicator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/container/test_replicator.py b/test/unit/container/test_replicator.py index c638dc5e35..399bb8bb19 100644 --- a/test/unit/container/test_replicator.py +++ b/test/unit/container/test_replicator.py @@ -168,7 +168,8 @@ class TestReplicatorSync(test_db_replicator.TestReplicatorSync): # replicate 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() success = daemon._repl_to_node(node, broker, part, info) self.assertFalse(success)