This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-test by this push:
     new f5e500c  Fix failing test in test_webserver_command (#9589)
f5e500c is described below

commit f5e500c7d76d866b51df00956e447af2d34602ec
Author: Kaxil Naik <kaxiln...@gmail.com>
AuthorDate: Tue Jun 30 13:40:39 2020 +0100

    Fix failing test in test_webserver_command (#9589)
---
 tests/test_core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_core.py b/tests/test_core.py
index 7912954..a5e1b2e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1736,7 +1736,7 @@ class CliTests(unittest.TestCase):
             self._check_processes()
 
     # Patch for causing webserver timeout
-    @mock.patch("airflow.bin.cli.get_num_workers_running", return_value=0)
+    @mock.patch("airflow.bin.cli.GunicornMonitor._get_num_workers_running", 
return_value=0)
     def test_cli_webserver_shutdown_when_gunicorn_master_is_killed(self, _):
         # Shorten timeout so that this test doesn't take too long time
         args = self.parser.parse_args(['webserver'])

Reply via email to