Skip to content

Commit

Permalink
fix: send reply test failure with cython (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Nov 7, 2023
1 parent 40a45b8 commit e634fc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_send_reply.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from unittest.mock import patch

import pytest

Expand Down Expand Up @@ -35,7 +36,8 @@ def send_message(self, msg: Message) -> None:
def _setup_socket(self) -> None:
pass

mock_message_bus = MockBus()
with patch("socket.socket.connect"):
mock_message_bus = MockBus()
mock_message = Message(
path="/test/path", interface="test.interface", member="test_member", serial=1
)
Expand Down Expand Up @@ -65,7 +67,8 @@ def send_message(self, msg: Message) -> None:
def _setup_socket(self) -> None:
pass

mock_message_bus = MockBus()
with patch("socket.socket.connect"):
mock_message_bus = MockBus()
mock_message = Message(
path="/test/path", interface="test.interface", member="test_member", serial=1
)
Expand Down

0 comments on commit e634fc2

Please sign in to comment.