@@ -117,8 +117,8 @@ mod tests {
117
117
use torrust_tracker_primitives:: torrent_metrics:: TorrentsMetrics ;
118
118
use torrust_tracker_test_helpers:: configuration;
119
119
120
- use crate :: app_test:: initialize_tracker_dependencies;
121
120
use crate :: core:: services:: statistics:: { self , get_metrics, TrackerMetrics } ;
121
+ use crate :: core:: torrent:: repository:: in_memory:: InMemoryTorrentRepository ;
122
122
use crate :: core:: { self } ;
123
123
use crate :: servers:: udp:: server:: banning:: BanService ;
124
124
use crate :: servers:: udp:: server:: launcher:: MAX_CONNECTION_ID_ERRORS_PER_IP ;
@@ -131,19 +131,9 @@ mod tests {
131
131
async fn the_statistics_service_should_return_the_tracker_metrics ( ) {
132
132
let config = tracker_configuration ( ) ;
133
133
134
- let (
135
- _database,
136
- _in_memory_whitelist,
137
- _whitelist_authorization,
138
- _authentication_service,
139
- in_memory_torrent_repository,
140
- _db_torrent_repository,
141
- _torrents_manager,
142
- ) = initialize_tracker_dependencies ( & config) ;
143
-
134
+ let in_memory_torrent_repository = Arc :: new ( InMemoryTorrentRepository :: default ( ) ) ;
144
135
let ( _stats_event_sender, stats_repository) = statistics:: setup:: factory ( config. core . tracker_usage_statistics ) ;
145
136
let stats_repository = Arc :: new ( stats_repository) ;
146
-
147
137
let ban_service = Arc :: new ( RwLock :: new ( BanService :: new ( MAX_CONNECTION_ID_ERRORS_PER_IP ) ) ) ;
148
138
149
139
let tracker_metrics = get_metrics (
0 commit comments