fix tests
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
2024-03-21 17:16:36 +01:00
parent 73291908f6
commit fde8ab895c
4 changed files with 76 additions and 46 deletions

View File

@ -14,9 +14,10 @@ use satrs::{
verification::{TcStateStarted, VerificationReportingProvider, VerificationToken},
EcssTmSender,
},
spacepackets::time::cds::{self, TimeProvider}, ComponentId,
spacepackets::time::cds::{self, TimeProvider},
ComponentId,
};
use satrs_example::config::{PUS_APID, ComponentIdList};
use satrs_example::config::{ComponentIdList, PUS_APID};
use crate::update_time;
@ -47,8 +48,11 @@ impl<VerificationReporter: VerificationReportingProvider> PusEventHandler<Verifi
let event_reporter = EventReporter::new(PUS_APID, 128).unwrap();
let pus_event_dispatcher =
DefaultPusEventU32Dispatcher::new_with_default_backend(event_reporter);
let pus_event_man_send_provider =
EventU32SenderMpscBounded::new(ComponentIdList::EventManagement as ComponentId, pus_event_man_tx, event_queue_cap);
let pus_event_man_send_provider = EventU32SenderMpscBounded::new(
ComponentIdList::EventManagement as ComponentId,
pus_event_man_tx,
event_queue_cap,
);
event_manager.subscribe_all(pus_event_man_send_provider.target_id());
event_manager.add_sender(pus_event_man_send_provider);