Commit ad051b2f authored by Carlos Natalino's avatar Carlos Natalino
Browse files

Including sleep during initialization of the service.

parent 4eb47585
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
import logging
import uuid
import queue
import time
from unittest.mock import patch

import pytest
@@ -36,6 +37,7 @@ LOGGER = logging.getLogger(__name__)
def optical_attack_detector_service():
    _service = OpticalAttackDetectorService()
    _service.start()
    time.sleep(2)
    yield _service
    _service.stop()