Skip to content

Commit cb6f177

Browse files
committed
fixed fixture
1 parent 2fe3409 commit cb6f177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/autoscaling/tests/unit/test_modules_cluster_scaling_dynamic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import aiodocker
2020
import arrow
21-
import botocore
21+
import botocore.exceptions
2222
import pytest
2323
import tenacity
2424
from aws_library.ec2 import EC2InstanceBootSpecific, EC2InstanceData, Resources
@@ -2439,7 +2439,7 @@ async def _raise_insufficient_capacity_error(*args: Any, **kwargs: Any) -> None:
24392439
raise botocore.exceptions.ClientError(
24402440
error_response={
24412441
"Error": {
2442-
"Code": "500",
2442+
"Code": "InsufficientInstanceCapacity",
24432443
"Message": "An error occurred (InsufficientInstanceCapacity) when calling the RunInstances operation (reached max retries: 4): We currently do not have sufficient g4dn.4xlarge capacity in the Availability Zone you requested (us-east-1a). Our system will be working on provisioning additional capacity. You can currently get g4dn.4xlarge capacity by not specifying an Availability Zone in your request or choosing us-east-1b, us-east-1c, us-east-1d, us-east-1f",
24442444
}
24452445
},

0 commit comments

Comments
 (0)