catalogContext.numberOfSites != (num_hosts * num_sites) ||
catalogContext.numberOfPartitions != (num_hosts * num_sites * num_partitions)) {
// HACK
String hostFormat = (num_hosts == 1 ? "localhost" : "host%02d");
Catalog c = FixCatalog.cloneCatalog(catalog, hostFormat, num_hosts, num_sites, num_partitions);
CatalogContext cc = new CatalogContext(c, catalogContext.jarPath);
this.init(this.last_type, cc);
}
Cluster cluster = catalogContext.cluster;
assertEquals(num_hosts, catalogContext.numberOfHosts);