@@ -233,11 +233,11 @@ fn test_encode_metrics() {
233
233
get_metric_value_does_not_capture ( now_millis, & metrics, line_prefix)
234
234
} ;
235
235
236
- fn assert_less_than_10_ms ( seconds : f64 ) {
237
- assert ! ( 0.0 < seconds && seconds < 0.010 , "{}" , seconds) ;
236
+ fn assert_less_than_50_ms ( seconds : f64 ) {
237
+ assert ! ( 0.0 < seconds && seconds < 0.050 , "{}" , seconds) ;
238
238
}
239
239
240
- assert_less_than_10_ms ( get_metric_value ( & format ! (
240
+ assert_less_than_50_ms ( get_metric_value ( & format ! (
241
241
r#"nns_root_in_flight_proxied_canister_call_max_age_seconds{{caller="{}",callee="{}",method_name="some_method"}} "# ,
242
242
caller, callee,
243
243
) ) ) ;
@@ -289,12 +289,12 @@ fn test_encode_metrics() {
289
289
get_metric_value_does_not_capture ( now_millis, & metrics, line_prefix)
290
290
} ;
291
291
292
- assert_less_than_10_ms ( get_metric_value ( & format ! (
292
+ assert_less_than_50_ms ( get_metric_value ( & format ! (
293
293
r#"nns_root_in_flight_proxied_canister_call_max_age_seconds{{caller="{}",callee="{}",method_name="some_method"}} "# ,
294
294
caller, callee,
295
295
) ) ) ;
296
296
297
- assert_less_than_10_ms ( get_metric_value ( & format ! (
297
+ assert_less_than_50_ms ( get_metric_value ( & format ! (
298
298
r#"nns_root_in_flight_proxied_canister_call_max_age_seconds{{caller="{}",callee="{}",method_name="canister_status"}} "# ,
299
299
caller, callee,
300
300
) ) ) ;
@@ -347,7 +347,7 @@ fn test_encode_metrics() {
347
347
get_metric_value_does_not_capture ( now_millis, & metrics, line_prefix)
348
348
} ;
349
349
350
- assert_less_than_10_ms ( get_metric_value ( & format ! (
350
+ assert_less_than_50_ms ( get_metric_value ( & format ! (
351
351
r#"nns_root_in_flight_proxied_canister_call_max_age_seconds{{caller="{}",callee="{}",method_name="some_method"}} "# ,
352
352
caller, callee,
353
353
) ) ) ;
0 commit comments