style(v0.4): rustfmt thermal/protocol/coprocessor/service/integration
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Alexander <akotenev2003@gmail.com>
This commit is contained in:
@@ -13,7 +13,10 @@ use std::sync::Arc;
|
||||
#[ignore = "нужна session-шина: just test-integration"]
|
||||
async fn power_state_and_fake_acc() {
|
||||
let svc = PowerService::new();
|
||||
let mock = svc.mock(Arc::new(MockTempSource::new(20)), Arc::new(MockCoprocessor::new()));
|
||||
let mock = svc.mock(
|
||||
Arc::new(MockTempSource::new(20)),
|
||||
Arc::new(MockCoprocessor::new()),
|
||||
);
|
||||
|
||||
// сервер: Power1 + dev.PowerMock1 на одном пути (владеет ru.shturman.Power)
|
||||
let server = zbus::Connection::session().await.unwrap();
|
||||
@@ -56,7 +59,10 @@ async fn power_state_and_fake_acc() {
|
||||
#[ignore = "нужна session-шина: just test-integration"]
|
||||
async fn shutdown_imminent_then_abort() {
|
||||
let svc = PowerService::new();
|
||||
let mock = svc.mock(Arc::new(MockTempSource::new(20)), Arc::new(MockCoprocessor::new()));
|
||||
let mock = svc.mock(
|
||||
Arc::new(MockTempSource::new(20)),
|
||||
Arc::new(MockCoprocessor::new()),
|
||||
);
|
||||
let server = zbus::Connection::session().await.unwrap();
|
||||
server
|
||||
.object_server()
|
||||
@@ -193,7 +199,7 @@ async fn mcu_failsafe_cuts_on_hang() {
|
||||
// дать coproc-циклу послать ≥1 heartbeat (иначе last_heartbeat=0 и guard не даст cut)
|
||||
tokio::time::sleep(std::time::Duration::from_millis(1300)).await;
|
||||
copro.hang(); // SoC завис → heartbeat не освежает таймер
|
||||
// ждём, пока coproc-цикл (HEARTBEAT=1с) накопит > FAILSAFE_MISS окон и сделает FailsafeCut
|
||||
// ждём, пока coproc-цикл (HEARTBEAT=1с) накопит > FAILSAFE_MISS окон и сделает FailsafeCut
|
||||
for _ in 0..10 {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(700)).await;
|
||||
if power.power_state().await.unwrap() == PowerState::Off {
|
||||
|
||||
Reference in New Issue
Block a user