Skip to content

Commit

Permalink
Fix flaky testClusterStateBatchedUpdates test (#10922)
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <amkhar@amazon.com>
Co-authored-by: Aman Khare <amkhar@amazon.com>
(cherry picked from commit 44a9f18)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and Aman Khare committed Oct 25, 2023
1 parent 8109a4b commit f8a70e8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,9 @@ public void onFailure(String source, Exception e) {
}
});
assertBusy(mockAppender::assertAllExpectationsMatched);
// verify stats values after state is published
assertEquals(1, clusterManagerService.getClusterStateStats().getUpdateSuccess());
assertEquals(0, clusterManagerService.getClusterStateStats().getUpdateFailed());
}
}
}
Expand Down Expand Up @@ -691,9 +694,6 @@ public void clusterStateProcessed(String source, ClusterState oldState, ClusterS
submittedTasksPerThread.get(entry.getKey()).get()
);
}
// verify stats values after state is published
assertEquals(1, clusterManagerService.getClusterStateStats().getUpdateSuccess());
assertEquals(0, clusterManagerService.getClusterStateStats().getUpdateFailed());
}
}

Expand Down

0 comments on commit f8a70e8

Please sign in to comment.