We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b41cf commit 9dd0e62Copy full SHA for 9dd0e62
1 file changed
crates/openshell-sandbox/src/sandbox/linux/netns.rs
@@ -922,10 +922,7 @@ mod tests {
922
923
// Verify namespace exists
924
let ns_path = format!("/var/run/netns/{name}");
925
- assert!(
926
- std::path::Path::new(&ns_path).exists(),
927
- "Namespace file should exist"
928
- );
+ assert!(Path::new(&ns_path).exists(), "Namespace file should exist");
929
930
// Verify IPs are set correctly
931
assert_eq!(
@@ -942,7 +939,7 @@ mod tests {
942
939
943
940
// Verify namespace is gone
944
941
assert!(
945
- !std::path::Path::new(&ns_path).exists(),
+ !Path::new(&ns_path).exists(),
946
"Namespace should be cleaned up"
947
);
948
}
0 commit comments