Skip to content

Commit

Permalink
Replacing an assert_eq with an assert in new tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
recatek committed Nov 18, 2023
1 parent 37c3998 commit d30ea30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sys/test_sockopt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit d30ea30

Please sign in to comment.