Skip to content

Commit c1d1391

Browse files
committed
chore: fix format
1 parent df18684 commit c1d1391

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

lambdas/.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
3-
"jest.jestCommandLine": "yarn run test --",
2+
"jest.jestCommandLine": "yarn run test --",
43
}
5-
4+

lambdas/functions/control-plane/src/lambda.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@ import { captureLambdaHandler, logger } from '@aws-github-runner/aws-powertools-
22
import { Context, SQSEvent, SQSRecord } from 'aws-lambda';
33
import { mocked } from 'jest-mock';
44

5-
import { addMiddleware, adjustPool, scaleDownHandler, scaleUpHandler, ssmHousekeeper, jobRetryCheck, cleanupOrgRunnersHandler } from './lambda';
5+
import {
6+
addMiddleware,
7+
adjustPool,
8+
scaleDownHandler,
9+
scaleUpHandler,
10+
ssmHousekeeper,
11+
jobRetryCheck,
12+
cleanupOrgRunnersHandler,
13+
} from './lambda';
614
import { adjust } from './pool/pool';
715
import ScaleError from './scale-runners/ScaleError';
816
import { scaleDown } from './scale-runners/scale-down';

lambdas/functions/control-plane/src/scale-runners/cleanup-org-runners.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ describe('cleanup-org-runners', () => {
203203
{ id: 1, name: 'runner-1', status: 'offline', labels: [] }, // Empty labels
204204
],
205205
expectedDeletedIds: [1], // Based on actual behavior, it deletes runners with empty labels
206-
}
206+
},
207207
];
208208

209209
for (const testCase of testCases) {
@@ -217,10 +217,10 @@ describe('cleanup-org-runners', () => {
217217

218218
// Verify
219219
expect(mockOctokit.actions.deleteSelfHostedRunnerFromOrg).toHaveBeenCalledTimes(
220-
testCase.expectedDeletedIds.length
220+
testCase.expectedDeletedIds.length,
221221
);
222222

223-
testCase.expectedDeletedIds.forEach(id => {
223+
testCase.expectedDeletedIds.forEach((id) => {
224224
expect(mockOctokit.actions.deleteSelfHostedRunnerFromOrg).toHaveBeenCalledWith({
225225
runner_id: id,
226226
org: 'test-org',

0 commit comments

Comments
 (0)