mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-27 13:13:54 +08:00
fix qlog decimation calculation in loggerd tests
old-commit-hash: d8411e7a62
This commit is contained in:
@@ -209,7 +209,7 @@ class TestLoggerd(unittest.TestCase):
|
||||
self.assertEqual(recv_cnt, 0, f"got {recv_cnt} {s} msgs in qlog")
|
||||
else:
|
||||
# check logged message count matches decimation
|
||||
expected_cnt = len(msgs) // service_list[s].decimation
|
||||
expected_cnt = (len(msgs) - 1) // service_list[s].decimation + 1
|
||||
self.assertEqual(recv_cnt, expected_cnt, f"expected {expected_cnt} msgs for {s}, got {recv_cnt}")
|
||||
|
||||
def test_rlog(self):
|
||||
|
||||
Reference in New Issue
Block a user