Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmahilani committed Oct 24, 2023
1 parent dfaf1c1 commit 79fe445
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/netflix/test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,9 @@ def test_kafka_model_constraints():

for lr in plan.least_regret:
for z in range(3):
assert lr.requirements.zonal[z].cpu_cores.low >= expected_min_zonal_cpu
clstr = lr.candidate_clusters.zonal[z]
assert clstr.instance.drive is None

assert (clstr.instance.cpu * clstr.count) >= expected_min_zonal_cpu

# force to local disks
plan = planner.plan(
Expand All @@ -270,6 +269,6 @@ def test_kafka_model_constraints():

for lr in plan.least_regret:
for z in range(3):
assert lr.requirements.zonal[z].cpu_cores.low >= expected_min_zonal_cpu
clstr = lr.candidate_clusters.zonal[z]
assert clstr.instance.drive is not None
assert (clstr.instance.cpu * clstr.count) >= expected_min_zonal_cpu

0 comments on commit 79fe445

Please sign in to comment.