Use in-memory backend in store tests

This commit is contained in:
Matthias Beyer 2017-06-08 22:31:23 +02:00
parent eeccd148f3
commit f82813bc3d

View file

@ -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]