Skip to content

Commit

Permalink
Fix test build failure
Browse files Browse the repository at this point in the history
Signed-off-by: Khushboo Rajput <khushbr@amazon.com>
  • Loading branch information
khushbr committed Oct 10, 2023
1 parent 2b24811 commit a05d61c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public void run() {

static Random RANDOM = new Random();
private static final int MAX_COUNT = 500;
private static final int CLUSTER_MANAGER_METRICS_ERRORS =
private static final int CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_ERROR =
Math.abs(RANDOM.nextInt() % MAX_COUNT);
private static final int REQUEST_REMOTE_ERRORS = Math.abs(RANDOM.nextInt() % MAX_COUNT);
private static final int READER_PARSER_ERRORS = Math.abs(RANDOM.nextInt() % MAX_COUNT);
private static final int READER_RESTART_PROCESSINGS = Math.abs(RANDOM.nextInt() % MAX_COUNT);
private static final int TOTAL_ERRORS =
CLUSTER_MANAGER_METRICS_ERRORS
CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_ERROR
+ REQUEST_REMOTE_ERRORS
+ READER_PARSER_ERRORS
+ READER_RESTART_PROCESSINGS;
Expand All @@ -63,7 +63,7 @@ public void testStats() throws Exception {

LinkedList<StatExceptionCode> exceptionCodeList = new LinkedList<>();

for (int i = 0; i < CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_COLLECTOR_ERROR; i++) {
for (int i = 0; i < CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_ERROR; i++) {
exceptionCodeList.add(
StatExceptionCode.CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_COLLECTOR_ERROR);
}
Expand Down Expand Up @@ -107,7 +107,7 @@ private static void assertExpected(StatsCollector sc) {
.toString(),
DEFAULT_VAL)
.get(),
CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_COLLECTOR_ERROR);
CLUSTER_MANAGER_SERVICE_EVENTS_METRICS_ERROR);
assertEquals(
sc.getCounters()
.getOrDefault(
Expand Down

0 comments on commit a05d61c

Please sign in to comment.