Start indices at 0 in test, to avoid reverse order indcies vs host names
@@ -150,7 +150,7 @@ public class InfraDeployerImplTest {
Node node = tester.addHost("id-" + id, "node-" + id, "default", nodeType);
Optional<Node> nodeWithAllocation = wantedVespaVersion.map(version -> {
ClusterSpec clusterSpec = application.getClusterSpecWithVersion(version).with(Optional.of(ClusterSpec.Group.from(0)));
- ClusterMembership membership = ClusterMembership.from(clusterSpec, 1);
+ ClusterMembership membership = ClusterMembership.from(clusterSpec, 0);
Allocation allocation = new Allocation(application.getApplicationId(), membership, node.resources(), Generation.initial(), false);
return node.with(allocation);
});
