Skip to content

Commit 4e7441e

Browse files
committed
Tests should not depend on getifaddrs succeeding.
1 parent 1f76300 commit 4e7441e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ifaddrs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ pub fn getifaddrs() -> Result<InterfaceAddressIterator> {
129129
mod tests {
130130
use super::*;
131131

132+
// Only checks if getifaddrs can be invoked without panicking.
132133
#[test]
133134
fn test_getifaddrs() {
134-
let addrs = getifaddrs();
135-
assert!(addrs.is_ok());
135+
let _ = getifaddrs();
136136
}
137137
}

0 commit comments

Comments
 (0)