Skip to content

Commit

Permalink
Change watchdog timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
rchiodo committed Oct 23, 2024
1 parent 7fec729 commit b85b147
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ testpaths=tests
timeout=60
timeout_method=thread
addopts=-n8
retries=2
retry_delay = 0.5
3 changes: 1 addition & 2 deletions tests/watchdog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from debugpy.common import log, messaging
from tests.watchdog import worker

WATCHDOG_TIMEOUT = 30
WATCHDOG_TIMEOUT = 10


_name = f"watchdog-{os.getpid()}"
Expand Down Expand Up @@ -79,7 +79,6 @@ def _dump_worker_log(command, problem, exc_info=None):


def _invoke(command, *args):
time.sleep(1) # Give the worker a chance to start up.
def timeout():
time.sleep(WATCHDOG_TIMEOUT)
if timeout.occurred is None:
Expand Down

0 comments on commit b85b147

Please sign in to comment.