From 83c703db7ffa8a3da29752f1c2c0ec33c158c354 Mon Sep 17 00:00:00 2001 From: Petro Tiurin Date: Fri, 28 Jan 2022 14:41:02 +0000 Subject: [PATCH] ci: Specifying timeout method --- .github/workflows/integration-tests.yml | 2 +- .github/workflows/nightly.yml | 2 +- tests/integration/dbapi/async/test_queries_async.py | 2 +- tests/integration/dbapi/sync/test_queries.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index a77ec93bdd5..987ba4ff5c4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -45,5 +45,5 @@ jobs: API_ENDPOINT: "api.dev.firebolt.io" ACCOUNT_NAME: "firebolt" run: | - pytest -n 6 -o log_cli=true -o log_cli_level=INFO tests/integration + pytest -n 6 --timeout_method "signal" -o log_cli=true -o log_cli_level=INFO tests/integration diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 8f396d0a008..df4ed43bba1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -54,5 +54,5 @@ jobs: ACCOUNT_NAME: "firebolt" API_ENDPOINT: "api.dev.firebolt.io" run: | - pytest -o log_cli=true -o log_cli_level=INFO tests/integration + pytest --timeout_method "thread" -o log_cli=true -o log_cli_level=INFO tests/integration diff --git a/tests/integration/dbapi/async/test_queries_async.py b/tests/integration/dbapi/async/test_queries_async.py index 695a98efa73..a14abec7d30 100644 --- a/tests/integration/dbapi/async/test_queries_async.py +++ b/tests/integration/dbapi/async/test_queries_async.py @@ -66,7 +66,7 @@ async def test_select( @mark.asyncio -@mark.timeout(timeout=400, method="signal") +@mark.timeout(timeout=400) async def test_long_query( connection: Connection, ) -> None: diff --git a/tests/integration/dbapi/sync/test_queries.py b/tests/integration/dbapi/sync/test_queries.py index 787a96952e8..72ecaebd4fb 100644 --- a/tests/integration/dbapi/sync/test_queries.py +++ b/tests/integration/dbapi/sync/test_queries.py @@ -62,7 +62,7 @@ def test_select( ) -@mark.timeout(timeout=400, method="signal") +@mark.timeout(timeout=400) def test_long_query( connection: Connection, ) -> None: