Use in-memory backend in store tests
This commit is contained in:
parent
eeccd148f3
commit
f82813bc3d
1 changed files with 3 additions and 1 deletions
|
@ -1231,9 +1231,11 @@ mod store_tests {
|
|||
use std::path::PathBuf;
|
||||
|
||||
use super::Store;
|
||||
use file_abstraction::InMemoryFileAbstraction;
|
||||
|
||||
pub fn get_store() -> Store {
|
||||
Store::new(PathBuf::from("/"), None).unwrap()
|
||||
let backend = Box::new(InMemoryFileAbstraction::new());
|
||||
Store::new_with_backend(PathBuf::from("/"), None, backend).unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue