Skip to content

Commit

Permalink
Update ping error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Mar 18, 2024
1 parent d892060 commit 7d6e201
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/cases/ping.stderr
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ping: => missing cap_net_raw+p capability or setuid?
ping: socket: Operation not permitted
2 changes: 1 addition & 1 deletion tests/custom_build_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn custom_build_name() {

let stderr = std::str::from_utf8(&output.stderr).unwrap();
assert!(
stderr.contains("ping: => missing cap_net_raw+p capability or setuid?"),
stderr.contains("ping: socket: Operation not permitted"),
"stderr does not contain expected string:\n```\n{}\n```",
stderr
);
Expand Down

0 comments on commit 7d6e201

Please sign in to comment.