diff --git a/lib/core/libimagstore/src/store.rs b/lib/core/libimagstore/src/store.rs index 1e195fb0..24b57052 100644 --- a/lib/core/libimagstore/src/store.rs +++ b/lib/core/libimagstore/src/store.rs @@ -1212,7 +1212,9 @@ mod store_tests { assert!(r.map_err(|e| debug!("ERROR: {:?}", e)).is_ok()); { - assert!(store.entries.read().unwrap().get(&id_mv).is_some()); + assert!(store.entries.read().unwrap().get(&id_mv).is_none()); // entry not in cache yet + assert!(store.get(id_mv.clone()).unwrap().is_some()); // get entry from backend + assert!(store.entries.read().unwrap().get(&id_mv).is_some()); // entry in cache } let res = store.get(id.clone());