Skip to content

Commit

Permalink
Fix flaky testClusterStateBatchedUpdates test (opensearch-project#10922)
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <[email protected]>
Co-authored-by: Aman Khare <[email protected]>
  • Loading branch information
amkhar and Aman Khare authored Oct 25, 2023
1 parent 6779633 commit 44a9f18
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 44a9f18

Please sign in to comment.