diff options
author | Chuyan Zhang <me@zcy.moe> | 2023-12-01 19:42:13 -0800 |
---|---|---|
committer | Chuyan Zhang <me@zcy.moe> | 2023-12-01 19:42:13 -0800 |
commit | 4c34414b26bf71e747ea3ecb2586645bab4aba52 (patch) | |
tree | b569935a94c7fb3e0a23a19207f6545b4d7719c3 /ayafs-core/src/tests/common | |
parent | fd125947c9db0b33761414e65e919f73d9bf1815 (diff) | |
download | myfs-4c34414b26bf71e747ea3ecb2586645bab4aba52.tar.gz myfs-4c34414b26bf71e747ea3ecb2586645bab4aba52.zip |
Multiple bugfix, it works!
Diffstat (limited to 'ayafs-core/src/tests/common')
-rw-r--r-- | ayafs-core/src/tests/common/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ayafs-core/src/tests/common/mod.rs b/ayafs-core/src/tests/common/mod.rs index 3abfcb4..134c84a 100644 --- a/ayafs-core/src/tests/common/mod.rs +++ b/ayafs-core/src/tests/common/mod.rs @@ -1,9 +1,10 @@ use crate::block_device::memory_disk::MemoryDisk; use crate::AyaFS; use std::sync::Arc; +use users::{get_current_gid, get_current_uid}; #[allow(unused)] pub(crate) fn setup() -> AyaFS { let mem_disk = Arc::new(MemoryDisk::new(1059715)); - AyaFS::new(mem_disk, 1059715) + AyaFS::new(mem_disk, 1059715, get_current_uid(), get_current_gid()) } |