Normal to have REC and TEC counters > 0, but less than threshould

This commit is contained in:
Igor Biletksyy 2023-06-26 14:16:34 -07:00
parent 7babe4cf6f
commit 6309bb8a6a
1 changed files with 4 additions and 2 deletions

View File

@ -187,8 +187,10 @@ def func_fixture_panda(request, module_panda):
for i in range(3):
can_health = p.can_health(i)
assert can_health['bus_off_cnt'] == 0
assert can_health['receive_error_cnt'] == 0
assert can_health['transmit_error_cnt'] == 0
assert can_health['receive_error_cnt'] < 127
assert can_health['transmit_error_cnt'] < 255
assert can_health['error_passive'] == 0
assert can_health['error_warning'] == 0
assert can_health['total_rx_lost_cnt'] == 0
assert can_health['total_tx_lost_cnt'] == 0
assert can_health['total_error_cnt'] == 0