summaryrefslogtreecommitdiff
path: root/ironic_python_agent/tests
diff options
context:
space:
mode:
authorRuby Loo <ruby.loo@intel.com>2017-10-18 11:32:23 -0400
committerRuby Loo <ruby.loo@intel.com>2017-10-18 11:32:23 -0400
commitb433fb07ea3df19b4b1004db701bd1578391f005 (patch)
treeeadda4447da1218258a41f5895e2a95998d3f532 /ironic_python_agent/tests
parentce32efc82b8a34455749407ebf0703bf41cb3a36 (diff)
downloadironic-python-agent-b433fb07ea3df19b4b1004db701bd1578391f005.tar.gz
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
Diffstat (limited to 'ironic_python_agent/tests')
-rw-r--r--ironic_python_agent/tests/unit/test_agent.py2
1 files changed, 1 insertions, 1 deletions
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()