File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
services/autoscaling/tests/unit Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments