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