Skip to content

Commit 5f4f2af

Browse files
Fix listing APIs max 25 component tests
1 parent 63bd2f7 commit 5f4f2af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/helpers/aws-gateway-helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export default async function getRestApiGatewayBaseUrl(): Promise<string> {
88
const region = AWS_REGION;
99
const client = new APIGatewayClient({ region });
1010

11-
const apis = await client.send(new GetRestApisCommand({}));
11+
const apis = await client.send(new GetRestApisCommand({ limit: 250 }));
12+
1213
const api = apis.items?.find((a) => a.name === API_NAME);
1314

1415
if (!api?.id) throw new Error(`API with name "${API_NAME}" not found.`);

0 commit comments

Comments
 (0)