fix(radarr): Pass in the movie ID alongside the GetMovieHistory event when publishing to the networking channel
This commit is contained in:
@@ -358,6 +358,7 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn test_dispatch_by_movie_history_block() {
|
||||
let (mut app, mut sync_network_rx) = construct_app_unit();
|
||||
app.data.radarr_data.movies.set_items(vec![Movie { id: 1, ..Movie::default() }]);
|
||||
|
||||
app
|
||||
.dispatch_by_radarr_block(&ActiveRadarrBlock::MovieHistory)
|
||||
@@ -366,7 +367,7 @@ mod tests {
|
||||
assert!(app.is_loading);
|
||||
assert_eq!(
|
||||
sync_network_rx.recv().await.unwrap(),
|
||||
RadarrEvent::GetMovieHistory(None).into()
|
||||
RadarrEvent::GetMovieHistory(1).into()
|
||||
);
|
||||
assert!(!app.data.radarr_data.prompt_confirm);
|
||||
assert_eq!(app.tick_count, 0);
|
||||
|
||||
Reference in New Issue
Block a user