This commit is contained in:
parent
a62df6dbf8
commit
f0ccc35e80
@ -187,8 +187,12 @@ mod tests {
|
|||||||
let tm_source = SyncTmSource::default();
|
let tm_source = SyncTmSource::default();
|
||||||
let mut packet_id_lookup = HashSet::new();
|
let mut packet_id_lookup = HashSet::new();
|
||||||
packet_id_lookup.insert(TEST_PACKET_ID_0);
|
packet_id_lookup.insert(TEST_PACKET_ID_0);
|
||||||
let mut tcp_server =
|
let mut tcp_server = generic_tmtc_server(
|
||||||
generic_tmtc_server(&auto_port_addr, tc_receiver.clone(), tm_source, packet_id_lookup);
|
&auto_port_addr,
|
||||||
|
tc_receiver.clone(),
|
||||||
|
tm_source,
|
||||||
|
packet_id_lookup,
|
||||||
|
);
|
||||||
let dest_addr = tcp_server
|
let dest_addr = tcp_server
|
||||||
.local_addr()
|
.local_addr()
|
||||||
.expect("retrieving dest addr failed");
|
.expect("retrieving dest addr failed");
|
||||||
|
@ -172,7 +172,10 @@ mod tests {
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
encoding::tests::{INVERTED_PACKET, SIMPLE_PACKET},
|
encoding::tests::{INVERTED_PACKET, SIMPLE_PACKET},
|
||||||
hal::std::tcp_server::{ServerConfig, tests::{SyncTcCacher, SyncTmSource}},
|
hal::std::tcp_server::{
|
||||||
|
tests::{SyncTcCacher, SyncTmSource},
|
||||||
|
ServerConfig,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
use alloc::{boxed::Box, sync::Arc};
|
use alloc::{boxed::Box, sync::Arc};
|
||||||
use cobs::encode;
|
use cobs::encode;
|
||||||
|
Loading…
Reference in New Issue
Block a user