Skip to content

Commit

Permalink
Use randomValueOtherThan to ensure it's different
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Sep 23, 2024
1 parent 13cde92 commit 3517005
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ protected CCSTelemetrySnapshot mutateInstance(CCSTelemetrySnapshot instance) thr
}
break;
case 3:
took = randomLongMetricValue();
took = randomValueOtherThan(took, this::randomLongMetricValue);
break;
case 4:
tookMrtTrue = randomLongMetricValue();
tookMrtTrue = randomValueOtherThan(tookMrtTrue, this::randomLongMetricValue);
break;
case 5:
tookMrtFalse = randomLongMetricValue();
tookMrtFalse = randomValueOtherThan(tookMrtFalse, this::randomLongMetricValue);
break;
case 6:
skippedRemotes += randomNonNegativeLong();
Expand Down

0 comments on commit 3517005

Please sign in to comment.