SAFETY-12: a minimum loop cadence - the loop thinks on a clock, not only when the number moves #7
+6
-1
@@ -52,9 +52,14 @@ Run the checks before deploying. No framework needed:
|
||||
|
||||
```bash
|
||||
cd goodwe_controller
|
||||
python3 test_control.py && python3 test_maintenance.py && python3 test_arbiter.py
|
||||
python3 test_control.py && python3 test_maintenance.py && python3 test_arbiter.py \
|
||||
&& python3 test_validate.py && python3 test_p1.py && python3 test_loop.py
|
||||
```
|
||||
|
||||
⚠️ `test_loop.py` takes about **35 seconds** and that is not a bug. It drives the real
|
||||
control loop, which sleeps 1 s a tick, to prove a wall-clock property about it
|
||||
(SAFETY-12); mocking the clock there would leave the assertion testing the mock.
|
||||
|
||||
---
|
||||
|
||||
## 3. Known broken / unfinished
|
||||
|
||||
Reference in New Issue
Block a user