Skip to content

Commit

Permalink
Fix flaky testClusterStateBatchedUpdates test
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <[email protected]>
  • Loading branch information
Aman Khare committed Oct 25, 2023
1 parent b78d0b8 commit 5839800
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 5839800

Please sign in to comment.