Skip to content

Commit 9677c6e

Browse files
committed
better assert
1 parent e09f505 commit 9677c6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/autoscaling/tests/unit/test_modules_auto_scaling_dynamic.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,10 @@ async def test_warm_buffers_are_started_to_replace_missing_hot_buffers(
18901890
0,
18911891
buffer_count
18921892
- app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MACHINES_BUFFER,
1893+
), (
1894+
"the warm buffers were not used as expected there should be"
1895+
f" {buffer_count - app_settings.AUTOSCALING_EC2_INSTANCES.EC2_INSTANCES_MACHINES_BUFFER} remaining, "
1896+
f"found {len(analyzed_cluster.buffer_ec2s)}"
18931897
)
18941898
assert (
18951899
len(analyzed_cluster.buffer_drained_nodes)

0 commit comments

Comments
 (0)