Skip to content

Commit

Permalink
optimize testbench
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Aug 21, 2024
1 parent 612bffd commit 4d0d768
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 116 deletions.
2 changes: 1 addition & 1 deletion src/dest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ mod tests {
2048,
test_packet_sender,
NativeFilestore::default(),
basic_remote_cfg_table(LOCAL_ID, true),
basic_remote_cfg_table(LOCAL_ID, 1024, true),
TestCheckTimerCreator::new(check_timer_expired),
)
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -945,12 +945,13 @@ pub(crate) mod tests {

pub fn basic_remote_cfg_table(
dest_id: impl Into<UnsignedByteField>,
max_packet_len: usize,
crc_on_transmission_by_default: bool,
) -> StdRemoteEntityConfigProvider {
let mut table = StdRemoteEntityConfigProvider::default();
let remote_entity_cfg = RemoteEntityConfig::new_with_default_values(
dest_id.into(),
1024,
max_packet_len,
true,
crc_on_transmission_by_default,
TransmissionMode::Unacknowledged,
Expand Down
Loading

0 comments on commit 4d0d768

Please sign in to comment.