From 8c8c5b41711d3c3e5def4b366d60e68d094def3a Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 24 Apr 2024 14:13:45 +0200 Subject: [PATCH] fix for tests --- satrs/tests/pus_events.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/satrs/tests/pus_events.rs b/satrs/tests/pus_events.rs index ec9b8d1..62bb8b0 100644 --- a/satrs/tests/pus_events.rs +++ b/satrs/tests/pus_events.rs @@ -5,7 +5,7 @@ use satrs::event_man::{ use satrs::events::{EventU32, EventU32TypedSev, Severity, SeverityInfo}; use satrs::params::U32Pair; use satrs::params::{Params, ParamsHeapless, WritableToBeBytes}; -use satrs::pus::event_man::{DefaultPusEventMgmtBackend, EventReporter, PusEventDispatcher}; +use satrs::pus::event_man::{DefaultPusEventReportingMap, EventReporter, PusEventTmCreatorWithMap}; use satrs::pus::test_util::TEST_COMPONENT_ID_0; use satrs::request::UniqueApidTargetId; use satrs::tmtc::PacketAsVec; @@ -39,7 +39,8 @@ fn test_threaded_usage() { let (event_packet_tx, event_packet_rx) = mpsc::channel::(); let reporter = EventReporter::new(TEST_ID.raw(), 0x02, 0, 128).expect("Creating event reporter failed"); - let pus_event_man = PusEventDispatcher::new(reporter, DefaultPusEventMgmtBackend::default()); + let pus_event_man = + PusEventTmCreatorWithMap::new(reporter, DefaultPusEventReportingMap::default()); let error_handler = |event_msg: &EventMessageU32, error: EventRoutingError| { panic!("received routing error for event {event_msg:?}: {error:?}"); };