test_models: sort messages by time (#34691)

Sort messages by time in test_models
pull/34693/head
Kacper Rączy 2 months ago committed by GitHub
parent 5c662da0db
commit 66425a61c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      selfdrive/car/tests/test_models.py

@ -126,7 +126,7 @@ class TestCarModelBase(unittest.TestCase):
try: try:
source = partial(auto_source, sources=[internal_source, internal_source_zst] if len(INTERNAL_SEG_LIST) else \ source = partial(auto_source, sources=[internal_source, internal_source_zst] if len(INTERNAL_SEG_LIST) else \
[openpilotci_source_zst, openpilotci_source, comma_api_source]) [openpilotci_source_zst, openpilotci_source, comma_api_source])
lr = LogReader(segment_range, source=source) lr = LogReader(segment_range, source=source, sort_by_time=True)
return cls.get_testing_data_from_logreader(lr) return cls.get_testing_data_from_logreader(lr)
except (LogsUnavailable, AssertionError): except (LogsUnavailable, AssertionError):
pass pass

Loading…
Cancel
Save