Skip to content

Commit

Permalink
add domainname test
Browse files Browse the repository at this point in the history
Signed-off-by: higuruchi <fumiya2324@gmail.com>
  • Loading branch information
higuruchi committed Sep 26, 2022
1 parent 7b7a45a commit 8df40c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/libcontainer/src/process/container_init_process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,14 @@ mod tests {
.get_hostname_args();
assert_eq!(1, got_hostnames.len());
assert_eq!("youki".to_string(), got_hostnames[0]);

let got_domainnames = syscall
.as_ref()
.as_any()
.downcast_ref::<TestHelperSyscall>()
.unwrap()
.get_domainname_args();
assert_eq!(0, got_domainnames.len());
Ok(())
}

Expand Down

0 comments on commit 8df40c6

Please sign in to comment.