Files
1okko 5c0feefabd 666
2026-05-10 07:59:33 +08:00

14 lines
317 B
Python

import time
from panda_tici import Panda
def test_boot_time(p):
# boot time should be instant
st = time.monotonic()
p.reset(reconnect=False)
assert Panda.wait_for_panda(p.get_usb_serial(), timeout=3.0)
# USB enumeration is slow, so SPI is faster
assert time.monotonic() - st < (1.0 if p.spi else 5.0)