mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
car interfaces test: don't sleep (#29589)
don't sleep in test_car_interfaces
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import math
|
||||
import unittest
|
||||
import hypothesis.strategies as st
|
||||
@@ -41,6 +42,10 @@ def get_fuzzy_car_interface_args(draw: DrawType) -> dict:
|
||||
|
||||
class TestCarInterfaces(unittest.TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
os.environ['NO_RADAR_SLEEP'] = '1'
|
||||
|
||||
@parameterized.expand([(car,) for car in sorted(all_known_cars())])
|
||||
@settings(max_examples=5)
|
||||
@given(data=st.data())
|
||||
|
||||
Reference in New Issue
Block a user