Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Aug 19, 2024
1 parent eafbe56 commit 6325f73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unit/connector/test_http_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from logprep.abc.input import FatalInputError
from logprep.connector.http.input import HttpInput
from logprep.factory import Factory
from logprep.framework.pipeline_manager import ThrottlingQueue
from logprep.util.defaults import ENV_NAME_LOGPREP_CREDENTIALS_FILE
from tests.unit.connector.base import BaseInputTestCase

Expand Down Expand Up @@ -48,7 +49,9 @@ def create_credentials(tmp_path):
class TestHttpConnector(BaseInputTestCase):

def setup_method(self):
HttpInput.messages = multiprocessing.Queue(maxsize=self.CONFIG.get("message_backlog_size"))
HttpInput.messages = ThrottlingQueue(
ctx=multiprocessing.get_context(), maxsize=self.CONFIG.get("message_backlog_size")
)
super().setup_method()
self.object.pipeline_index = 1
self.object.setup()
Expand Down

0 comments on commit 6325f73

Please sign in to comment.