client: pxar: do not attempt to set uid/gid in test

Setting the uid/gid for the files and folders of the test directory
structure will not work when lacking the permissions.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
Christian Ebner 2024-06-06 10:17:10 +02:00 committed by Fabian Grünbichler
parent 766faeb04a
commit bab0645cc6

View File

@ -1814,16 +1814,14 @@ mod tests {
);
let dir_metadata = Metadata {
stat: pxar::Stat::default().mode(0o777u64).set_dir().gid(0).uid(0),
stat: pxar::Stat::default().mode(0o777u64).set_dir(),
..Default::default()
};
let file_metadata = Metadata {
stat: pxar::Stat::default()
.mode(0o777u64)
.set_regular_file()
.gid(0)
.uid(0),
.set_regular_file(),
..Default::default()
};