ensure hosts get cleaned up even in the rare but possible case that a QueueTask finds no process at all

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3325 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/scheduler/monitor_db_unittest.py b/scheduler/monitor_db_unittest.py
index 3a4aba6..730b2b0 100644
--- a/scheduler/monitor_db_unittest.py
+++ b/scheduler/monitor_db_unittest.py
@@ -1633,6 +1633,8 @@
         _set_host_and_qe_ids(parse_task)
         self._dispatcher.add_agent.expect_call(IsAgentWithTask(parse_task))
 
+        self.pidfile_monitor.num_tests_failed.expect_call().and_return(0)
+
 
     def _run_gather_logs_task(self):
         task = monitor_db.GatherLogsTask(self.job, [self.queue_entry])