Skip to content

Commit

Permalink
fix namespaces tests
Browse files Browse the repository at this point in the history
Signed-off-by: qjerome <qjerome@rawsec.lu>
  • Loading branch information
qjerome committed Jan 18, 2024
1 parent f98b827 commit d24fc25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kunai/src/util/namespaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ mod test {

#[test]
fn test_open() {
let pid = process::id() as i32;
let pid = process::id();
for kind in [
Kind::Cgroup,
Kind::Ipc,
Expand All @@ -244,7 +244,7 @@ mod test {

#[test]
fn test_read() {
let pid = process::id() as i32;
let pid = process::id();
for kind in [
Kind::Cgroup,
Kind::Ipc,
Expand All @@ -264,7 +264,7 @@ mod test {

#[test]
fn test_eq() {
let pid = process::id() as i32;
let pid = process::id();
let ns = Namespace::from_pid(Kind::Pid, pid).unwrap();
let other = Namespace::from_pid(Kind::Pid, pid).unwrap();
assert_eq!(ns, other)
Expand Down

0 comments on commit d24fc25

Please sign in to comment.