Skip to content

Commit 1cb5898

Browse files
committed
Don't use ICMP socket in testing
Not allowed on the CI.
1 parent ba41392 commit 1cb5898

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/socket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,13 @@ fn protocol() {
878878
let socket = Socket::new(Domain::UNIX, Type::STREAM, None).unwrap();
879879
assert_eq!(socket.protocol().unwrap(), None);
880880

881+
/* Don't have permission for this on CI.
881882
let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::ICMPV4)).unwrap();
882883
assert_eq!(socket.protocol().unwrap(), Some(Protocol::ICMPV4));
883884
884885
let socket = Socket::new(Domain::IPV6, Type::DGRAM, Some(Protocol::ICMPV6)).unwrap();
885886
assert_eq!(socket.protocol().unwrap(), Some(Protocol::ICMPV6));
887+
*/
886888

887889
let socket = Socket::new(Domain::IPV4, Type::STREAM, Some(Protocol::TCP)).unwrap();
888890
assert_eq!(socket.protocol().unwrap(), Some(Protocol::TCP));

0 commit comments

Comments
 (0)