X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4a3cb7560929cb3fe4a7970bb1e307aa7af35712..13288c69988380210150124d7991af6ca6e3d62b:/services/nodemanager/tests/__init__.py diff --git a/services/nodemanager/tests/__init__.py b/services/nodemanager/tests/__init__.py index d374840eaf..20e02f91e4 100644 --- a/services/nodemanager/tests/__init__.py +++ b/services/nodemanager/tests/__init__.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 import logging import os @@ -7,10 +10,9 @@ import os loglevel = os.environ.get('ANMTEST_LOGLEVEL', 'CRITICAL') logging.basicConfig(level=getattr(logging, loglevel.upper())) -# Many tests wait for an actor to call a mock method. They poll very -# regularly (see wait_for_call in ActorTestMixin), but if you've -# broken something, a long timeout can mean you'll spend a lot of time -# watching failures come in. You can set the ANMTEST_TIMEOUT -# environment variable to arrange a shorter timeout while you're doing -# regular development. +# Set the ANMTEST_TIMEOUT environment variable to the maximum amount of time to +# wait for tested actors to respond to important messages. The default value +# is very conservative, because a small value may produce false negatives on +# slower systems. If you're debugging a known timeout issue, however, you may +# want to set this lower to speed up tests. pykka_timeout = int(os.environ.get('ANMTEST_TIMEOUT', '10'))