From 116732e57d66b0054b1ea0cb2f5972242463ea9e Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 8 May 2015 09:53:35 -0600 Subject: [PATCH] Sort hostnames in unit test Signed-off-by: Zack Cerza --- teuthology/test/task/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/test/task/__init__.py b/teuthology/test/task/__init__.py index 57b1dc74f9..22755f07bf 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() -- 2.39.5