ci: fixed long timeout

api-breakage
Morty Space 4 years ago
parent 76692ea0dd
commit 98b88c157f
  1. 4
      .github/workflows/test_release.yml
  2. 2
      tests/test_private.py

@ -1,5 +1,5 @@
---
name: CI / CD
name: Test & Release
on:
schedule:
- cron: "* * */5 * *"
@ -79,7 +79,7 @@ jobs:
- name: Test docs
run: . activate.sh && cd docs && make doctest && cd ..
- name: Test code
timeout-minutes: 10
timeout-minutes: 6
run: . activate.sh && poetry run pytest -v --cov . --cov-report xml:coverage.xml
- name: Send codeclimate analytics
if: matrix.python-version == '3.10'

@ -27,7 +27,7 @@ def retry(times: int):
times -= 1
if not times:
raise exc
while account.get_open_orders(cro.pairs.CRO_USDT):
while await account.get_open_orders(cro.pairs.CRO_USDT):
await account.cancel_open_orders(cro.pairs.CRO_USDT)
return wrapper

Loading…
Cancel
Save