@@ -293,7 +293,7 @@ describe('Test metrics with mock server', () => {
293293 attributes ,
294294 ) ;
295295 // Since we only have one attempt, the attempt latency should be fairly close to the operation latency
296- assertApprox ( MIN_LATENCY , attemptLatency , 30 ) ;
296+ assertApprox ( operationLatency , attemptLatency , 30 ) ;
297297
298298 const gfeLatency = getAggregatedValue ( gfeLatenciesData , attributes ) ;
299299 assert . strictEqual ( gfeLatency , 123 ) ;
@@ -303,7 +303,7 @@ describe('Test metrics with mock server', () => {
303303 } ) ;
304304
305305 // check that the latency matches up with the measured elapsed time within 10ms
306- assertApprox ( elapsedTime , totalOperationLatency , 10 ) ;
306+ assertApprox ( elapsedTime , totalOperationLatency , 50 ) ;
307307
308308 // Make sure no GFE/AFE connectivity errors ar emitted since we got GFE latencies
309309 const gfeMissingData = hasMetricData (
@@ -710,7 +710,7 @@ describe('Test metrics with mock server', () => {
710710 attributes ,
711711 ) ;
712712 // Since we only have one attempt, the attempt latency should be fairly close to the operation latency
713- assertApprox ( MIN_LATENCY , attemptLatency , 30 ) ;
713+ assertApprox ( operationLatency , attemptLatency , 30 ) ;
714714
715715 const gfeLatency = getAggregatedValue ( gfeLatenciesData , attributes ) ;
716716 assert . strictEqual ( gfeLatency , 123 ) ;
0 commit comments