Skip to content

Commit

Permalink
Fixed GatewayAllocatorTests
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Chandani <[email protected]>
  • Loading branch information
Gaurav614 committed Apr 12, 2024
1 parent baca309 commit e8d5600
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ public void testCorrectnessOfBatch() {
.values()
.stream()
.map(ShardsBatchGatewayAllocator.ShardsBatch::getBatchedShardRoutings)
.flatMap(Set::stream)
.flatMap(List::stream)
.collect(Collectors.toSet());
primariesInAllBatches.forEach(shardRouting -> assertTrue(shardRouting.unassigned() && shardRouting.primary() == true));

Set<ShardRouting> replicasInAllBatches = testShardsBatchGatewayAllocator.getBatchIdToStoreShardBatch()
.values()
.stream()
.map(ShardsBatchGatewayAllocator.ShardsBatch::getBatchedShardRoutings)
.flatMap(Set::stream)
.flatMap(List::stream)
.collect(Collectors.toSet());

replicasInAllBatches.forEach(shardRouting -> assertTrue(shardRouting.unassigned() && shardRouting.primary() == false));
Expand Down

0 comments on commit e8d5600

Please sign in to comment.