From 0ac9f888b2af8d72ca30bb3e5727ef9d0758a717 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 31 Oct 2022 01:25:55 +0100 Subject: [PATCH] check retval --- fsrc-core/tests/pus_events.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsrc-core/tests/pus_events.rs b/fsrc-core/tests/pus_events.rs index 85b8a29..e4faf35 100644 --- a/fsrc-core/tests/pus_events.rs +++ b/fsrc-core/tests/pus_events.rs @@ -30,9 +30,11 @@ fn main() { let mut event_man = PusEventTmManager::new(reporter, Box::new(backend)); let (event_tx, event_rx) = channel(); let mut sender = EventTmSender { sender: event_tx }; - event_man + let event_sent = event_man .generate_pus_event_tm(&mut sender, &EMPTY_STAMP, INFO_EVENT, None) .expect("Sending info event failed"); + + assert!(event_sent); let packet = event_rx.recv().expect("Receiving event TM failed"); println!("{:?}", packet); //let event_man;