@@ -1457,15 +1457,10 @@ mod tests {
14571457 // Run this test with stdout enabled to see output.
14581458 // cargo test asynchronous_instruments_cumulative_data_points_only_from_last_measurement --features=testing -- --nocapture
14591459
1460- asynchronous_instruments_cumulative_data_points_only_from_last_measurement_helper (
1461- "gauge" , true ,
1462- ) ;
1463- asynchronous_instruments_cumulative_data_points_only_from_last_measurement_helper (
1464- "counter" , true ,
1465- ) ;
1460+ asynchronous_instruments_cumulative_data_points_only_from_last_measurement_helper ( "gauge" ) ;
1461+ asynchronous_instruments_cumulative_data_points_only_from_last_measurement_helper ( "counter" ) ;
14661462 asynchronous_instruments_cumulative_data_points_only_from_last_measurement_helper (
14671463 "updown_counter" ,
1468- true ,
14691464 ) ;
14701465 }
14711466
@@ -1780,7 +1775,6 @@ mod tests {
17801775
17811776 fn asynchronous_instruments_cumulative_data_points_only_from_last_measurement_helper (
17821777 instrument_name : & ' static str ,
1783- should_not_emit : bool ,
17841778 ) {
17851779 let mut test_context = TestContext :: new ( Temporality :: Cumulative ) ;
17861780 let attributes = Arc :: new ( [ KeyValue :: new ( "key1" , "value1" ) ] ) ;
@@ -1842,12 +1836,7 @@ mod tests {
18421836
18431837 test_context. flush_metrics ( ) ;
18441838
1845- if should_not_emit {
1846- test_context. check_no_metrics ( ) ;
1847- } else {
1848- // Test that latest export has the same data as the previous one
1849- assert_correct_export ( & mut test_context, instrument_name) ;
1850- }
1839+ test_context. check_no_metrics ( ) ;
18511840
18521841 fn assert_correct_export ( test_context : & mut TestContext , instrument_name : & ' static str ) {
18531842 match instrument_name {
0 commit comments