Browse Source

[TEST] fixes rebalance single shard check as it isn't guaranteed that a
rebalance makes sense and the method only tests if rebalance is allowed

Ali Beyad 9 years ago
parent
commit
5c4392e58a

+ 0 - 1
core/src/test/java/org/elasticsearch/cluster/routing/allocation/BalancedSingleShardTests.java

@@ -118,7 +118,6 @@ public class BalancedSingleShardTests extends ESAllocationTestCase {
         ClusterState clusterState = rebalance.v1();
         RebalanceDecision rebalanceDecision = rebalance.v2();
         assertEquals(Type.YES, rebalanceDecision.getCanRebalanceDecision().type());
-        assertEquals(Type.YES, rebalanceDecision.getFinalDecisionType());
         assertNotNull(rebalanceDecision.getFinalExplanation());
         assertEquals(clusterState.nodes().getSize() - 1, rebalanceDecision.getNodeDecisions().size());
         assertNotNull(rebalanceDecision.getAssignedNodeId());