mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-20 15:06:14 -05:00
test: use root for HIP user lookup (#696)
This commit is contained in:
1 parent
16e08c09af
commit
e03a758acb
1 file changed
+2
-3
@@ -785,9 +785,8 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn explicit_hip_user_resolves_to_the_selected_account() {
|
fn explicit_hip_user_resolves_to_the_selected_account() {
|
||||||
let current = uzers::get_user_by_uid(uzers::get_effective_uid()).unwrap();
|
// Build sandboxes may use a UID without an entry in the user database.
|
||||||
let name = current.name().to_string_lossy().into_owned();
|
assert_eq!(get_uid(&Some("root".to_string())).unwrap(), Some(0));
|
||||||
assert_eq!(get_uid(&Some(name)).unwrap(), Some(current.uid()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in new issue
Block a user