Skip to content

Commit

Permalink
Fixed flaky aws2 cw test with real service (#6174)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriOndrusek authored Jun 11, 2024
1 parent ee04bb5 commit d03525f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,17 @@ public void headers() {
if (!(oddDp.sampleCount().intValue() == 2
&& oddDp.minimum().intValue() == 2 * value + 1
&& oddDp.maximum().intValue() == 2 * value + 3)) {
throw new RuntimeException("Unexpected odd datapoint " + oddDp
LOG.warn("Unexpected odd datapoint " + oddDp
+ "; expected sampleCount == 2 && minimum ~ " + (2 * value + 1)
+ " && maximum ~ " + (2 * value + 3));
return false;
}

if (!(evenDp.average() == 2 * value + 2
&& evenDp.sampleCount() == 3)) {
throw new RuntimeException("Unexpected even datapoint " + evenDp
LOG.warn("Unexpected even datapoint " + evenDp
+ "; expected sampleCount == 3 && average == " + (2 * value + 2));
return false;
}

return true;
Expand Down

0 comments on commit d03525f

Please sign in to comment.