Skip to content

Commit 7fcb1d4

Browse files
committed
Don't use ICMP socket in testing
Not allowed on the CI.
1 parent 4293da6 commit 7fcb1d4

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
@@ -761,11 +761,13 @@ fn protocol() {
761761
let socket = Socket::new(Domain::UNIX, Type::STREAM, None).unwrap();
762762
assert_eq!(socket.protocol().unwrap(), None);
763763

764+
/* Don't have permission for this on CI.
764765
let socket = Socket::new(Domain::IPV4, Type::DGRAM, Some(Protocol::ICMPV4)).unwrap();
765766
assert_eq!(socket.protocol().unwrap(), Some(Protocol::ICMPV4));
766767
767768
let socket = Socket::new(Domain::IPV6, Type::DGRAM, Some(Protocol::ICMPV6)).unwrap();
768769
assert_eq!(socket.protocol().unwrap(), Some(Protocol::ICMPV6));
770+
*/
769771

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

0 commit comments

Comments
 (0)