Merge pull request #310 from coreemu/actions-test

Mocked Unit Test Action
This commit is contained in:
bharnden 2019-10-30 16:51:22 -07:00 committed by GitHub
commit 19300c7564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -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

View file

@ -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(),