Merge "[Tests] Fix functional test_time_hook"

This commit is contained in:
Jenkins 2016-10-19 17:07:03 +00:00 committed by Gerrit Code Review
commit fd94cbaf66

View File

@ -1203,5 +1203,8 @@ class HookTestCase(unittest.TestCase):
hooks_cfg = cfg["Dummy.dummy"][0]["hooks"]
expected = [self._get_result(hooks_cfg[0], iterations=[5]),
self._get_result(hooks_cfg[1], seconds=[3, 6, 9])]
self.assertEqual(expected, hook_results)
self.assertEqual(
expected,
sorted(hook_results,
key=lambda i: i["config"]["trigger"]["args"]["unit"]))
self._assert_results_time(hook_results)