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

kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


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

commit f429c3c8e3cac3df9e93f8cbf606c23d56a2bb9a
Author: Kaxil Naik <kaxiln...@gmail.com>
AuthorDate: Tue Jun 30 14:03:25 2020 +0100

    Fix failing test in test_webserver_command (#9589)
---
 tests/cli/commands/test_webserver_command.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/cli/commands/test_webserver_command.py 
b/tests/cli/commands/test_webserver_command.py
index 939e1d1..16c99d4 100644
--- a/tests/cli/commands/test_webserver_command.py
+++ b/tests/cli/commands/test_webserver_command.py
@@ -297,7 +297,8 @@ class TestCliWebServer(unittest.TestCase):
         proc.wait()
 
     # Patch for causing webserver timeout
-    
@mock.patch("airflow.cli.commands.webserver_command.get_num_workers_running", 
return_value=0)
+    
@mock.patch("airflow.cli.commands.webserver_command.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