diff --git a/tests/usbprotocol/test_comms.py b/tests/usbprotocol/test_comms.py index e649bdaeabf..9c249e2a845 100755 --- a/tests/usbprotocol/test_comms.py +++ b/tests/usbprotocol/test_comms.py @@ -100,30 +100,6 @@ def test_comms_reset_tx(self): assert m == test_msg, "message buffer should contain valid test messages" - def test_can_send_usb(self): - lpp.set_safety_hooks(Panda.SAFETY_ALLOUTPUT, 0) - - for bus in range(3): - with self.subTest(bus=bus): - for _ in range(100): - msgs = random_can_messages(200, bus=bus) - packed = pack_can_buffer(msgs) - - # Simulate USB bulk chunks - for buf in packed: - for i in range(0, len(buf), CHUNK_SIZE): - chunk_len = min(CHUNK_SIZE, len(buf) - i) - lpp.comms_can_write(buf[i:i+chunk_len], chunk_len) - - # Check that they ended up in the right buffers - queue_msgs = [] - pkt = libpanda_py.ffi.new('CANPacket_t *') - while lpp.can_pop(TX_QUEUES[bus], pkt): - queue_msgs.append(unpackage_can_msg(pkt)) - - self.assertEqual(len(queue_msgs), len(msgs)) - self.assertEqual(queue_msgs, msgs) - def test_can_receive_usb(self): msgs = random_can_messages(50000) packets = [libpanda_py.make_CANPacket(m[0], m[2], m[1]) for m in msgs]