Ensure consistency between in-memory and database state #146
@ -832,15 +832,13 @@ mod tests {
|
|||||||
assert!(music_hoard.get_collection()[0]
|
assert!(music_hoard.get_collection()[0]
|
||||||
.albums
|
.albums
|
||||||
.iter()
|
.iter()
|
||||||
.find(|album| album.id.title == "album_title a.a")
|
.any(|album| album.id.title == "album_title a.a"));
|
||||||
.is_some());
|
|
||||||
|
|
||||||
music_hoard.rescan_library().unwrap();
|
music_hoard.rescan_library().unwrap();
|
||||||
assert!(music_hoard.get_collection()[0]
|
assert!(!music_hoard.get_collection()[0]
|
||||||
.albums
|
.albums
|
||||||
.iter()
|
.iter()
|
||||||
.find(|album| album.id.title == "album_title a.a")
|
.any(|album| album.id.title == "album_title a.a"));
|
||||||
.is_none());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user