Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Oct 17, 2024
1 parent 3900d7e commit 8cb884a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ public void onStart(StreamController controller) {}

@Override
public void onResponse(Row response) {
// Server sends back 2 responses for this test
if (firstResponseTimer.isRunning()) {
firstResponseTimer.stop();
}
Expand Down Expand Up @@ -371,7 +372,7 @@ public void onComplete() {}
MetricData metricData = getMetricData(metricReader, FIRST_RESPONSE_LATENCIES_NAME);

long value = getAggregatedValue(metricData, expectedAttributes);
assertThat(value).isLessThan(firstResponseTimer.elapsed(TimeUnit.MILLISECONDS));
assertThat(value).isAtMost(firstResponseTimer.elapsed(TimeUnit.MILLISECONDS));
}

@Test
Expand Down

0 comments on commit 8cb884a

Please sign in to comment.