Skip to content

Commit

Permalink
Reenable multidrop tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
janiversen committed Oct 10, 2024
1 parent 317f3c8 commit 93e8fb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion pymodbus/framer/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def processIncomingPacket(self, data: bytes, callback, tid=None):
result.slave_id = self.incoming_dev_id
result.transaction_id = self.incoming_tid
Log.debug("Frame advanced, resetting header!!")
self.databuffer = self.databuffer[used_len:]
if tid and result.transaction_id and tid != result.transaction_id:
self.databuffer = b''
else:
Expand Down
6 changes: 2 additions & 4 deletions test/framers/test_multidrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def test_ok_frame(self, framer, callback):
framer.processIncomingPacket(serial_event, callback)
callback.assert_called_once()

@pytest.mark.skip
def test_ok_2frame(self, framer, callback): # pragma: no cover
def test_ok_2frame(self, framer, callback):
"""Test ok frame."""
serial_event = self.good_frame + self.good_frame
framer.processIncomingPacket(serial_event, callback)
Expand Down Expand Up @@ -66,8 +65,7 @@ def test_big_split_response_frame_from_other_id(self, framer, callback):
framer.processIncomingPacket(serial_event, callback)
callback.assert_not_called()

@pytest.mark.skip
def test_split_frame(self, framer, callback): # pragma: no cover
def test_split_frame(self, framer, callback):
"""Test split frame."""
serial_events = [self.good_frame[:5], self.good_frame[5:]]
for serial_event in serial_events:
Expand Down

0 comments on commit 93e8fb9

Please sign in to comment.