summaryrefslogtreecommitdiff
path: root/ayafs-core/src/tests/common
diff options
context:
space:
mode:
Diffstat (limited to 'ayafs-core/src/tests/common')
-rw-r--r--ayafs-core/src/tests/common/mod.rs3
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())
}