ci: make ui preview more deterministic (#33526)

set ping time
This commit is contained in:
Maxime Desroches 2024-09-09 14:35:40 -07:00 committed by GitHub
parent 343de54030
commit f1331ae9bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ class TestUI:
def setup(self):
self.pm = PubMaster(list(DATA.keys()))
DATA['deviceState'].deviceState.networkType = log.DeviceState.NetworkType.wifi
DATA['deviceState'].deviceState.lastAthenaPingTime = 0
for _ in range(10):
self.pm.send('deviceState', DATA['deviceState'])
DATA['deviceState'].clear_write_flag()