From 68ced8ae66ac68e2ff32243a6ab1799e0a821803 Mon Sep 17 00:00:00 2001 From: Carlos Natalino <carlos.natalino@chalmers.se> Date: Tue, 11 Jul 2023 07:02:19 +0000 Subject: [PATCH] Fixing bind address and clearning services. --- src/opticalattackdetector/.gitlab-ci.yml | 1 + src/opticalattackdetector/tests/test_unitary.py | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/opticalattackdetector/.gitlab-ci.yml b/src/opticalattackdetector/.gitlab-ci.yml index 917ce53ba..2a89b5c54 100644 --- a/src/opticalattackdetector/.gitlab-ci.yml +++ b/src/opticalattackdetector/.gitlab-ci.yml @@ -77,6 +77,7 @@ unit_test opticalattackdetector: after_script: - docker rm -f $IMAGE_NAME - docker rm -f redis + - docker rm -f dbscanserving - docker network rm teraflowbridge rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' diff --git a/src/opticalattackdetector/tests/test_unitary.py b/src/opticalattackdetector/tests/test_unitary.py index 586a724df..d2fe74903 100644 --- a/src/opticalattackdetector/tests/test_unitary.py +++ b/src/opticalattackdetector/tests/test_unitary.py @@ -43,8 +43,11 @@ def optical_attack_detector_service(): @pytest.fixture(scope="session") -def optical_attack_detector_client(optical_attack_detector_service): - _client = OpticalAttackDetectorClient() +def optical_attack_detector_client(optical_attack_detector_service: OpticalAttackDetectorService): + _client = OpticalAttackDetectorClient( + host=optical_attack_detector_service.bind_address, + port=optical_attack_detector_service.bind_port, + ) yield _client _client.close() -- GitLab