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

This commit is contained in:
Dark-Alex-17 committed 2024-12-18 01:01:01 -07:00
1 parent 42479ced21
commit 1d404d4d2c
8 files changed
+43 -90

No files matched your search

+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>) {