Skip to content

Commit

Permalink
added 30 second default timeout per test, in attempt to resolve the t…
Browse files Browse the repository at this point in the history
…ests hanging in CI, presumable due to IO conflicts with the DB which different runs read and write to.
  • Loading branch information
djl11 committed Nov 8, 2024
1 parent 8e4d499 commit f0d2aa1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# name: cache
# path: .cache.json
- name: Run unit tests
run: poetry run pytest -p no:warnings -vv .
run: poetry run pytest --timeout=30 -p no:warnings -vv .
env:
UNIFY_KEY: ${{ secrets.USER_API_KEY }}
- name: Upload cache
Expand Down
2 changes: 1 addition & 1 deletion .run/pycharm/Python tests for test_evals.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ENTRY IS_ENABLED="true" PARSER="env" IS_EXECUTABLE="false" PATH=".env" />
</ENTRIES>
</EXTENSION>
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;--timeout\u003d30&quot;" />
<option name="_new_target" value="&quot;test_evals&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method v="2" />
Expand Down
2 changes: 1 addition & 1 deletion .run/pycharm/Python tests for test_routing.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ENTRY IS_ENABLED="true" PARSER="env" IS_EXECUTABLE="false" PATH=".env" />
</ENTRIES>
</EXTENSION>
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;--timeout\u003d30&quot;" />
<option name="_new_target" value="&quot;test_routing&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method v="2" />
Expand Down
2 changes: 1 addition & 1 deletion .run/pycharm/Python tests for test_universal_api.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ENTRY IS_ENABLED="true" PARSER="env" IS_EXECUTABLE="false" PATH=".env" />
</ENTRIES>
</EXTENSION>
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;--timeout\u003d30&quot;" />
<option name="_new_target" value="&quot;test_universal_api&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method v="2" />
Expand Down
2 changes: 1 addition & 1 deletion .run/pycharm/Python tests for test_utils.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ENTRY IS_ENABLED="true" PARSER="env" IS_EXECUTABLE="false" PATH=".env" />
</ENTRIES>
</EXTENSION>
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_additionalArguments" value="&quot;--timeout\u003d30&quot;" />
<option name="_new_target" value="&quot;test_utils&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method v="2" />
Expand Down

0 comments on commit f0d2aa1

Please sign in to comment.