Skip to content

Commit

Permalink
Adding a latch await in UT
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <sagar.upadhyaya.121@gmail.com>
  • Loading branch information
sgup432 committed May 6, 2024
1 parent d52ce39 commit f35ff3a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1271,6 +1271,7 @@ public void testGetOrComputeConcurrentlyWithMultipleIndices() throws Exception {
latch.countDown();
});
}
latch.await();
for (int i = 0; i < numberOfIndices; i++) {
IndexShard indexShard = indexShardList.get(i);
IndicesService.IndexShardCacheEntity entity = entityMap.get(indexShard);
Expand Down

0 comments on commit f35ff3a

Please sign in to comment.