Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamClercky committed Mar 21, 2024
1 parent b00848b commit 43a557f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dot15d4/src/csma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ pub mod tests {
let mut f = FrameBuffer::default();
let mut frame_repr = FrameBuilder::new_data(&[1, 2, 3, 4])
.set_sequence_number(sequence_number)
.set_dst_address(Address::Extended([1, 2, 3, 4, 5, 6, 7, 8]))
.set_dst_address(Address::Extended(radio.ieee802154_address()))
.set_src_address(Address::Extended([1, 2, 3, 4, 9, 8, 7, 6]))
.set_dst_pan_id(0xfff)
.set_src_pan_id(0xfff)
Expand Down Expand Up @@ -695,7 +695,7 @@ pub mod tests {
let mut f = FrameBuffer::default();
let mut frame_repr = FrameBuilder::new_data(&[1, 2, 3, 4])
.set_sequence_number(sequence_number)
.set_dst_address(Address::Extended([1, 2, 3, 4, 5, 6, 7, 8]))
.set_dst_address(Address::Extended(radio.ieee802154_address()))
.set_src_address(Address::Extended([1, 2, 3, 4, 9, 8, 7, 6]))
.set_dst_pan_id(0xfff)
.set_src_pan_id(0xfff)
Expand Down
7 changes: 6 additions & 1 deletion dot15d4/src/phy/radio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ pub mod tests {
return;
}

println!(
"New event arrived [{}]: {:?}",
inner.total_event_count, evnt
);

inner.total_event_count += 1;
if let Some(waker) = inner.assert_waker.take() {
waker.wake();
Expand Down Expand Up @@ -218,7 +223,7 @@ pub mod tests {

impl Default for TestRadio {
fn default() -> Self {
Self::new([0; 8])
Self::new([0xca; 8])
}
}

Expand Down

0 comments on commit 43a557f

Please sign in to comment.