File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
rust/otap-dataflow/crates/otap/src Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1140,8 +1140,6 @@ mod tests {
11401140 assert ! ( cfg. validate( ) . is_err( ) ) ;
11411141 }
11421142
1143- /// Unified test harness for all batch processor scenarios
1144-
11451143 /// Test event: either process input or deliver pending timers
11461144 enum TestEvent {
11471145 Input ( OtlpProtoMessage ) ,
@@ -1417,7 +1415,7 @@ mod tests {
14171415 |event_outputs| {
14181416 // Find first non-empty event (should have size-triggered output)
14191417 let first_output_event = event_outputs
1420- . into_iter ( )
1418+ . iter ( )
14211419 . find ( |e| !e. outputs . is_empty ( ) )
14221420 . expect ( "should have at least one output event" ) ;
14231421
@@ -1693,8 +1691,7 @@ mod tests {
16931691
16941692 // Use inputs with unique markers
16951693 let num_inputs = 20 ;
1696- let inputs_otlp: Vec < OtlpProtoMessage > =
1697- ( 0 ..num_inputs) . map ( |i| create_marked_input ( i) ) . collect ( ) ;
1694+ let inputs_otlp: Vec < OtlpProtoMessage > = ( 0 ..num_inputs) . map ( create_marked_input) . collect ( ) ;
16981695
16991696 let mut events: Vec < TestEvent > = inputs_otlp
17001697 . iter ( )
@@ -1720,7 +1717,7 @@ mod tests {
17201717 let markers: Vec < _ > = output_msg
17211718 . messages ( )
17221719 . iter ( )
1723- . flat_map ( |m| extract_markers ( m ) )
1720+ . flat_map ( & extract_markers)
17241721 . collect ( ) ;
17251722
17261723 if markers. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments