Skip to content

Commit e169cc5

Browse files
authored
fix: flaky metric test (#2472)
1 parent 0712141 commit e169cc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/metrics/metrics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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);
@@ -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

Comments
 (0)