Skip to content

Commit 9da33ea

Browse files
committed
cleanup
1 parent d7f3708 commit 9da33ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/autoscaling/tests/unit/test_modules_auto_scaling_dynamic.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ async def test_cluster_adapts_machines_on_the_fly( # noqa: PLR0915
12991299

13001300
analyzed_cluster = assert_cluster_state(
13011301
spied_cluster_analysis,
1302-
expected_calls=1,
1302+
expected_calls=3,
13031303
expected_num_machines=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MAX_INSTANCES,
13041304
)
13051305
assert analyzed_cluster.active_nodes
@@ -1391,6 +1391,11 @@ async def test_cluster_adapts_machines_on_the_fly( # noqa: PLR0915
13911391
await auto_scale_cluster(
13921392
app=initialized_app, auto_scaling_mode=DynamicAutoscaling()
13931393
)
1394+
analyzed_cluster = assert_cluster_state(
1395+
spied_cluster_analysis,
1396+
expected_calls=1,
1397+
expected_num_machines=app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MAX_INSTANCES,
1398+
)
13941399
mock_docker_tag_node.assert_called_with(
13951400
mock.ANY,
13961401
analyzed_cluster.drained_nodes[-1].node,

0 commit comments

Comments
 (0)