Skip to content

Commit 39d3e34

Browse files
committed
Remove expected panic message from from_invalid_raw_fd_should_panic
It changed between 1.70 and current stable. Checking if the function panics should be good enough.
1 parent 7d3ce41 commit 39d3e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ fn protocol_fmt_debug() {
140140
}
141141

142142
#[test]
143-
#[should_panic = "fd != -1"]
143+
#[should_panic]
144144
#[cfg(unix)]
145145
fn from_invalid_raw_fd_should_panic() {
146146
use std::os::unix::io::FromRawFd;

0 commit comments

Comments
 (0)