File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
+ import os
2
3
import gc
3
4
import capnp
4
5
from cereal import car , log
@@ -440,7 +441,8 @@ def controlsd_thread(gctx=None):
440
441
logcan .close ()
441
442
442
443
# TODO: Use the logcan socket from above, but that will currenly break the tests
443
- can_sock = messaging .sub_sock (service_list ['can' ].port , timeout = 100 )
444
+ can_timeout = None if os .environ .get ('NO_CAN_TIMEOUT' , False ) else 100
445
+ can_sock = messaging .sub_sock (service_list ['can' ].port , timeout = can_timeout )
444
446
445
447
car_recognized = CP .carName != 'mock'
446
448
# If stock camera is disconnected, we loaded car controls and it's not chffrplus
Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ def setup_output():
325
325
class LongitudinalControl (unittest .TestCase ):
326
326
@classmethod
327
327
def setUpClass (cls ):
328
+ os .environ ['NO_CAN_TIMEOUT' ] = "1"
328
329
329
330
setup_output ()
330
331
You can’t perform that action at this time.
0 commit comments