Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
bongbui321 committed Oct 10, 2024
1 parent 3712b85 commit bae5634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/usbprotocol/test_comms.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_tx_queues(self):
lpp.comms_can_reset()

for bus in range(len(TX_QUEUES)):
message = (0x100, b"test", bus)
message = (0x100, b"test1", bus)

can_pkt_tx = libpanda_py.make_CANPacket(message[0], message[2], message[1], lpp, ffi)
can_pkt_rx = ffi.new('CANPacket_t *')
Expand All @@ -55,7 +55,7 @@ def test_comms_reset_rx(self):
lpp.comms_can_reset()

self.my_id = id(lpp.tx1_q)
test_msg = (0x100, b"test", 0)
test_msg = (0x100, b"test2", 0)
for _ in range(100):
can_pkt_tx = libpanda_py.make_CANPacket(test_msg[0], test_msg[2], test_msg[1], lpp, ffi)
lpp.can_push(lpp.rx_q, can_pkt_tx)
Expand Down Expand Up @@ -92,7 +92,7 @@ def test_comms_reset_tx(self):
lpp.set_safety_hooks(Panda.SAFETY_ALLOUTPUT, 0)

# store some test messages in the queue
test_msg = (0x100, b"test", 0)
test_msg = (0x100, b"test3", 0)
packed = pack_can_buffer([test_msg for _ in range(100)])

# write a small chunk such that we have some overflow
Expand Down

0 comments on commit bae5634

Please sign in to comment.