Commit 68ced8ae authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Fixing bind address and clearning services.

parent 14428242
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)'
+5 −2
Original line number Diff line number Diff line
@@ -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()