mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
updateMixedInstancesPolicyOverridesAndDistribution asserted that the DescribeAutoScalingGroups response contained no <InstanceType>t4g.medium</InstanceType> anywhere after switching the override to r7g.large. The background AutoScalingReconciler may have already launched an instance with the original t4g.medium override, which legitimately keeps its instance type after a policy update (matching AWS). That instance appears under <Instances>, making the whole-response assertion flaky. Scope the negative check to the <Overrides> block so it verifies the policy was updated without being tripped by a previously launched instance.