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

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


The following commit(s) were added to refs/heads/main by this push:
     new 76e2e04ad6 Increase timeouts for hook related tests (#31371)
76e2e04ad6 is described below

commit 76e2e04ad6bfcf00b5bb71053fc66168174a12ae
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu May 18 02:24:59 2023 +0200

    Increase timeouts for hook related tests (#31371)
    
    After upgrading to newer google providers, it takes a little
    longer to import all google provider hooks to get all the
    information for provider's manager and adding connection. This
    should be optimised before we release the new google provider,
    but in order to stabilize the tests we can increase timeouts for
    the tests.
    
    Issue to do so created: #31370
---
 tests/always/test_providers_manager.py   | 1 +
 tests/www/views/test_views_connection.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/always/test_providers_manager.py 
b/tests/always/test_providers_manager.py
index 663eea393b..b18eb22071 100644
--- a/tests/always/test_providers_manager.py
+++ b/tests/always/test_providers_manager.py
@@ -165,6 +165,7 @@ class TestProviderManager:
             raise AssertionError("There are warnings generated during hook 
imports. Please fix them")
         assert [] == [w.message for w in warning_records.list if 
"hook-class-names" in str(w.message)]
 
+    @pytest.mark.execution_timeout(150)
     def test_hook_values(self):
         with pytest.warns(expected_warning=None) as warning_records:
             with self._caplog.at_level(logging.WARNING):
diff --git a/tests/www/views/test_views_connection.py 
b/tests/www/views/test_views_connection.py
index fb6566d936..a3d00befc2 100644
--- a/tests/www/views/test_views_connection.py
+++ b/tests/www/views/test_views_connection.py
@@ -51,6 +51,7 @@ def clear_connections():
         session.query(Connection).delete()
 
 
[email protected]_timeout(150)
 def test_create_connection(admin_client, session):
     resp = admin_client.post("/connection/add", data=CONNECTION, 
follow_redirects=True)
     check_content_in_response("Added Row", resp)

Reply via email to