]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
test_worker: Don't access the network! 1676/head
authorZack Cerza <zack@redhat.com>
Wed, 15 Sep 2021 21:23:34 +0000 (15:23 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 15 Sep 2021 23:05:16 +0000 (17:05 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/test/test_worker.py

index b0885b9740bba543d3d07f2f6e2c7cfe024b622e..ae92e2441a626d9231e273d212efa9d4015e9224 100644 (file)
@@ -161,7 +161,8 @@ class TestWorker(object):
     @patch("subprocess.Popen")
     @patch("teuthology.worker.symlink_worker_log")
     @patch("time.sleep")
-    def test_run_with_watchdog_with_reporting(self, m_sleep, m_symlink_log, m_popen):
+    @patch("teuthology.worker.report.try_push_job_info")
+    def test_run_with_watchdog_with_reporting(self, m_tpji, m_sleep, m_symlink_log, m_popen):
         config = {
             "name": "the_name",
             "job_id": "1",