Fix occasional test failure by assertListEqual

Change-Id: I56a52f76b52286d9b1b236137cc8f41d8f4bac47
This commit is contained in:
Lingxian Kong 2016-02-04 16:38:45 +13:00
parent 76ff7c75a7
commit 04e2948b9d

View File

@ -166,7 +166,7 @@ class WorkflowTestsV2(base.TestCase):
self.assertEqual(200, resp.status)
for wf in body['workflows']:
self.assertListEqual(['id', 'name'], wf.keys())
self.assertListEqual(sorted(['id', 'name']), sorted(list(wf)))
@test.attr(type='smoke')
def test_get_list_workflows_with_pagination(self):