Skip to content

Commit 8f06109

Browse files
committed
Fix wrong feature flag for UDP broadcast test
The UDP broadcast test was using the wrong feature flag. This commit fixes the feature flag to use the correct one. This must have slipped through the cracks when I updated the tests to use rstest.
1 parent 53caf70 commit 8f06109

File tree

1 file changed

+8
-4
lines changed
  • src/iface/interface/tests

1 file changed

+8
-4
lines changed

src/iface/interface/tests/mod.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,15 @@ fn test_new_panic() {
6161
Interface::new(config, &mut device, Instant::ZERO);
6262
}
6363

64+
#[cfg(feature = "socket-udp")]
6465
#[rstest]
65-
#[cfg(feature = "default")]
66-
fn test_handle_udp_broadcast(
67-
#[values(Medium::Ip, Medium::Ethernet, Medium::Ieee802154)] medium: Medium,
68-
) {
66+
#[case::ip(Medium::Ip)]
67+
#[cfg(feature = "medium-ip")]
68+
#[case::ethernet(Medium::Ethernet)]
69+
#[cfg(feature = "medium-ethernet")]
70+
#[case::ieee802154(Medium::Ieee802154)]
71+
#[cfg(feature = "medium-ieee802154")]
72+
fn test_handle_udp_broadcast(#[case] medium: Medium) {
6973
use crate::socket::udp;
7074
use crate::wire::IpEndpoint;
7175

0 commit comments

Comments
 (0)