From 4c34414b26bf71e747ea3ecb2586645bab4aba52 Mon Sep 17 00:00:00 2001 From: Chuyan Zhang Date: Fri, 1 Dec 2023 19:42:13 -0800 Subject: Multiple bugfix, it works! --- ayafs-core/src/tests/common/mod.rs | 3 ++- ayafs-core/src/tests/mod.rs | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ayafs-core/src/tests') 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; -- cgit v1.2.3-70-g09d2