Ensure consistency between in-memory and database state #146

Merged
wojtek merged 8 commits from 120---ensure-consistency-between-in-memory-and-database-state into main 2024-03-01 09:00:53 +01:00
Showing only changes of commit c76e2309a3 - Show all commits

View File

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