Skip to content

Commit

Permalink
fix: accustom the test run time to circle ci limit of 5 hr
Browse files Browse the repository at this point in the history
  • Loading branch information
boolafish committed Mar 9, 2020
1 parent 4dc4ddc commit fb82170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
- run:
name: Run slow tests
working_directory: ~/repo/plasma_framework/python_tests
no_output_timeout: 10h
no_output_timeout: 5h # Circl CI limits to 5hr max: https://discuss.circleci.com/t/job-times-out-after-5-hours/32220/3
command: |
. ~/venv/bin/activate
make runslow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def test_slow(testlang, w3):
# 4. exit something
# 5. attempt to finalize

for i in range(1000):
# Circle CI has a limit of the test can only be run at most 5 hours. After experiment, it can run for close to 800 runs.
# Choose 700 as a safer number to run the test.
for i in range(700):
print(f'[{datetime.datetime.now()}]: iteration {i}')
# 1. deposit few
for _ in range(5):
Expand Down

0 comments on commit fb82170

Please sign in to comment.