fix(sonarr): Pass the indexer ID directly alongside all TestIndexer events when publishing to the networking channel

This commit is contained in:
2024-12-18 01:01:01 -07:00
parent 42479ced21
commit 1d404d4d2c
8 changed files with 43 additions and 90 deletions
+2 -2
View File
@@ -769,14 +769,14 @@ mod tests {
}
#[tokio::test]
async fn test_extract_indexer_id() {
async fn test_extract_radarr_indexer_id() {
let mut app = App::default();
app.data.radarr_data.indexers.set_items(vec![Indexer {
id: 1,
..Indexer::default()
}]);
assert_eq!(app.extract_indexer_id().await, 1);
assert_eq!(app.extract_radarr_indexer_id().await, 1);
}
fn construct_app_unit<'a>() -> (App<'a>, mpsc::Receiver<NetworkEvent>) {