check retval
This commit is contained in:
parent
01766464eb
commit
0ac9f888b2
@ -30,9 +30,11 @@ fn main() {
|
|||||||
let mut event_man = PusEventTmManager::new(reporter, Box::new(backend));
|
let mut event_man = PusEventTmManager::new(reporter, Box::new(backend));
|
||||||
let (event_tx, event_rx) = channel();
|
let (event_tx, event_rx) = channel();
|
||||||
let mut sender = EventTmSender { sender: event_tx };
|
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)
|
.generate_pus_event_tm(&mut sender, &EMPTY_STAMP, INFO_EVENT, None)
|
||||||
.expect("Sending info event failed");
|
.expect("Sending info event failed");
|
||||||
|
|
||||||
|
assert!(event_sent);
|
||||||
let packet = event_rx.recv().expect("Receiving event TM failed");
|
let packet = event_rx.recv().expect("Receiving event TM failed");
|
||||||
println!("{:?}", packet);
|
println!("{:?}", packet);
|
||||||
//let event_man;
|
//let event_man;
|
||||||
|
Loading…
Reference in New Issue
Block a user