Skip to content

Commit

Permalink
cost function to return value of 0 or 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ranganathg committed Oct 14, 2024
1 parent 4901044 commit be1b2fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public void testMutuallyExclusiveTablesOnSameServer() throws Exception
CostFunction costFunction = new MutuallyExclusiveTablesCostFunction(conf);
costFunction.prepare(new BalancerClusterState(clusterState, null, null, null));
double cost = costFunction.cost();
assertEquals(1000, cost, 0.001);
assertEquals(1, cost, 0.001);
}

@Test
Expand Down

0 comments on commit be1b2fd

Please sign in to comment.