Skip to content

Commit

Permalink
Merge pull request #968 from thvdveld/fix-test-feature-flag
Browse files Browse the repository at this point in the history
Fix wrong feature flag for UDP broadcast test
  • Loading branch information
Dirbaio authored Aug 5, 2024
2 parents 2d4dde7 + 8f06109 commit 4ed4f2a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/iface/interface/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@ fn test_new_panic() {
Interface::new(config, &mut device, Instant::ZERO);
}

#[cfg(feature = "socket-udp")]
#[rstest]
#[cfg(feature = "default")]
fn test_handle_udp_broadcast(
#[values(Medium::Ip, Medium::Ethernet, Medium::Ieee802154)] medium: Medium,
) {
#[case::ip(Medium::Ip)]
#[cfg(feature = "medium-ip")]
#[case::ethernet(Medium::Ethernet)]
#[cfg(feature = "medium-ethernet")]
#[case::ieee802154(Medium::Ieee802154)]
#[cfg(feature = "medium-ieee802154")]
fn test_handle_udp_broadcast(#[case] medium: Medium) {
use crate::socket::udp;
use crate::wire::IpEndpoint;

Expand Down

0 comments on commit 4ed4f2a

Please sign in to comment.