diff --git a/.github/workflows/daemon-checks.yml b/.github/workflows/daemon-checks.yml index 023f5165..21dd95dc 100644 --- a/.github/workflows/daemon-checks.yml +++ b/.github/workflows/daemon-checks.yml @@ -17,6 +17,8 @@ jobs: pip install pipenv cd daemon cp setup.py.in setup.py + cp core/constants.py.in core/constants.py + sed -i 's/True/False/g' core/constants.py pipenv install --dev - name: isort run: | @@ -30,3 +32,11 @@ jobs: run: | cd daemon pipenv run flake8 + - name: grpc + run: | + cd daemon/proto + pipenv run python -m grpc_tools.protoc -I . --python_out=.. --grpc_python_out=.. core/api/grpc/core.proto + - name: test + run: | + cd daemon + pipenv run test --mock diff --git a/daemon/core/api/tlv/corehandlers.py b/daemon/core/api/tlv/corehandlers.py index e66d6875..321306a2 100644 --- a/daemon/core/api/tlv/corehandlers.py +++ b/daemon/core/api/tlv/corehandlers.py @@ -123,7 +123,7 @@ class CoreHandler(socketserver.BaseRequestHandler): for thread in self.handler_threads: logging.info("waiting for thread: %s", thread.getName()) thread.join(timeout) - if thread.isAlive(): + if thread.is_alive(): logging.warning( "joining %s failed: still alive after %s sec", thread.getName(),