diff --git a/test/sys/test_sockopt.rs b/test/sys/test_sockopt.rs index 94481a0b4f..0107deec36 100644 --- a/test/sys/test_sockopt.rs +++ b/test/sys/test_sockopt.rs @@ -448,7 +448,7 @@ fn test_receive_timestamp() { ) .unwrap(); setsockopt(&fd, sockopt::ReceiveTimestamp, &true).unwrap(); - assert_eq!(getsockopt(&fd, sockopt::ReceiveTimestamp).unwrap(), true); + assert!(getsockopt(&fd, sockopt::ReceiveTimestamp).unwrap()); } #[test]