Skip to content

Commit

Permalink
CR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fulmicoton committed Oct 31, 2023
1 parent c7303e3 commit 709674f
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,19 +358,6 @@ mod tests {
assert_eq!(solution.indexer_assignments[1].num_shards(1), 1);
}

#[test]
fn test_truncate_sources() {
let mut problem = SchedulingProblem::with_indexer_maximum_load(vec![5_000, 4_000]);
// Source 0
problem.add_source(1, NonZeroU32::new(1_000).unwrap());
let mut solution = problem.new_solution();
solution.indexer_assignments[0].add_shard(0, 1);
solution.indexer_assignments[0].add_shard(1, 1);
remove_extraneous_shards(&problem, &mut solution);
assert_eq!(solution.indexer_assignments[0].num_shards(0), 1);
assert_eq!(solution.indexer_assignments[0].num_shards(1), 0);
}

#[test]
fn test_enforce_nodes_max_load() {
let mut problem =
Expand Down

0 comments on commit 709674f

Please sign in to comment.