From b433fb07ea3df19b4b1004db701bd1578391f005 Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Wed, 18 Oct 2017 11:32:23 -0400 Subject: Unit test has incorrect mock order Minor change to a unit test; the names of the mock arguments to the unit test method are not consistent with the actual ordering of the mock decorators. This fixes it. Change-Id: Id9e0dd1614703760b2fe143b2029f9bf6067420a --- ironic_python_agent/tests/unit/test_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ironic_python_agent/tests') diff --git a/ironic_python_agent/tests/unit/test_agent.py b/ironic_python_agent/tests/unit/test_agent.py index 1b084307..4de211e9 100644 --- a/ironic_python_agent/tests/unit/test_agent.py +++ b/ironic_python_agent/tests/unit/test_agent.py @@ -394,7 +394,7 @@ class TestBaseAgent(ironic_agent_base.IronicAgentTest): @mock.patch.object(hardware, 'dispatch_to_managers', autospec=True) @mock.patch('wsgiref.simple_server.make_server', autospec=True) def test_run_with_sleep(self, mock_make_server, mock_dispatch, - mock_load_managers, mock_sleep, mock_wait): + mock_wait, mock_sleep, mock_load_managers): CONF.set_override('inspection_callback_url', '') wsgi_server = mock_make_server.return_value wsgi_server.start.side_effect = KeyboardInterrupt() -- cgit v1.2.1