From: Zack Cerza Date: Fri, 8 May 2015 15:53:35 +0000 (-0600) Subject: Sort hostnames in unit test X-Git-Tag: 1.1.0~946^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=116732e57d66b0054b1ea0cb2f5972242463ea9e;p=teuthology.git Sort hostnames in unit test Signed-off-by: Zack Cerza --- diff --git a/teuthology/test/task/__init__.py b/teuthology/test/task/__init__.py index 57b1dc74f..22755f07b 100644 --- a/teuthology/test/task/__init__.py +++ b/teuthology/test/task/__init__.py @@ -34,8 +34,8 @@ class TestTask(object): with Task(self.ctx, task_config) as task: task_hosts = task.cluster.remotes.keys() assert len(task_hosts) == 2 - assert task_hosts[0].name == 'remote1' - assert task_hosts[1].name == 'remote2' + assert sorted(host.name for host in task_hosts) == ['remote1', + 'remote2'] def test_hosts_no_results(self): self.ctx.cluster = Cluster()