Skip to content

Commit

Permalink
Raise exceptions in shutdown to troubleshoot GHA tests running infi…
Browse files Browse the repository at this point in the history
…nitely

Add unit test timeout to prevent running forever
  • Loading branch information
NeonDaniel committed Jan 14, 2025
1 parent 777bb0b commit 215b55b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
py_build_tests:
uses: neongeckocom/.github/.github/workflows/python_build_tests.yml@master
unit_tests:
timeout-minutes: 5
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
Expand Down
1 change: 1 addition & 0 deletions neon_iris/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def shutdown(self):
except Exception as x:
LOG.exception(x)
LOG.error("Consumers not shutdown")
raise e

def handle_neon_response(self, channel, method, _, body):
"""
Expand Down

0 comments on commit 215b55b

Please sign in to comment.