Skip to content

Commit

Permalink
Merge pull request #120 from DLHub-Argonne/test-timeout
Browse files Browse the repository at this point in the history
Add timeout to tests
  • Loading branch information
WardLT committed Sep 27, 2021
2 parents 524993c + 4f8d0cc commit 81edce5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dlhub_sdk/utils/futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, client, task_id: str, ping_interval: float):
assert AttributeError('Ping interval must be at least 1 second')

# Start a thread that polls status
self._checker_thread = Thread(target=DLHubFuture._ping_server, args=(self,))
self._checker_thread = Thread(target=DLHubFuture._ping_server, args=(self,), daemon=True)
self._checker_thread.start()

def _ping_server(self):
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ universal = 1
[flake8]
exclude = .git,*.egg*
max-line-length = 150

[tool:pytest]
timeout = 60
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ torch>=1.1.0
pytest
pytest-cov
mdf-connect-client>=0.3.8
pytest-timeout

0 comments on commit 81edce5

Please sign in to comment.