Skip to content

Commit 7da1bd1

Browse files
committed
Disable LocalAddresses test in Wasm
1 parent addec6e commit 7da1bd1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

netwatch/src/ip.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,10 @@ pub const fn is_unicast_link_local(addr: Ipv6Addr) -> bool {
148148

149149
#[cfg(test)]
150150
mod tests {
151-
use super::*;
152-
151+
#[cfg(not(all(target_family = "wasm", target_os = "unknown")))]
153152
#[test]
154153
fn test_local_addresses() {
155-
let addrs = LocalAddresses::new();
154+
let addrs = super::LocalAddresses::new();
156155
dbg!(&addrs);
157156
assert!(!addrs.loopback.is_empty());
158157
assert!(!addrs.regular.is_empty());

0 commit comments

Comments
 (0)