summaryrefslogtreecommitdiff
path: root/ayafs-core/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ayafs-core/src/tests')
-rw-r--r--ayafs-core/src/tests/common/mod.rs3
-rw-r--r--ayafs-core/src/tests/mod.rs1
2 files changed, 2 insertions, 2 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())
}
diff --git a/ayafs-core/src/tests/mod.rs b/ayafs-core/src/tests/mod.rs
index df442c1..98984ff 100644
--- a/ayafs-core/src/tests/mod.rs
+++ b/ayafs-core/src/tests/mod.rs
@@ -1,6 +1,5 @@
#[cfg(test)]
mod bitmap;
mod common;
-
#[cfg(test)]
mod block_cache;