File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -928,12 +928,14 @@ mod tests {
928928
929929 #[ tokio:: test]
930930 async fn test_build_otlp_payload_with_metrics ( ) {
931- let mut metrics = crate :: metrics:: Metrics :: default ( ) ;
932- metrics. clamreef_scans_total = 10 ;
933- metrics. clamreef_threats_detected_total = 2 ;
934- metrics. clamreef_files_scanned_total = 100 ;
935- metrics. clamreef_agent_uptime_seconds = 3600 ;
936- metrics. clamreef_clamav_database_version = 27000 ;
931+ let metrics = crate :: metrics:: Metrics {
932+ clamreef_scans_total : 10 ,
933+ clamreef_threats_detected_total : 2 ,
934+ clamreef_files_scanned_total : 100 ,
935+ clamreef_agent_uptime_seconds : 3600 ,
936+ clamreef_clamav_database_version : 27000 ,
937+ ..Default :: default ( )
938+ } ;
937939
938940 let host_metrics = crate :: metrics:: HostMetrics :: collect ( ) ;
939941
You can’t perform that action at this time.
0 commit comments