Skip to content

Commit 9d7c89a

Browse files
committed
fmt
1 parent 14df9fe commit 9d7c89a

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,9 +351,18 @@ describe('Scale down runners', () => {
351351
checkNonTerminated(runners);
352352
});
353353

354-
it('Should test if orphaned runner, untag if online and busy, else terminate (JIT)', async () => {
354+
it('Should test if orphaned runner, untag if online and busy, else terminate (JIT)', async () => {
355355
// arrange
356-
const orphanRunner = createRunnerTestData('orphan-jit', type, MINIMUM_BOOT_TIME + 1, false, true, false, undefined, 1234567890);
356+
const orphanRunner = createRunnerTestData(
357+
'orphan-jit',
358+
type,
359+
MINIMUM_BOOT_TIME + 1,
360+
false,
361+
true,
362+
false,
363+
undefined,
364+
1234567890,
365+
);
357366
const runners = [orphanRunner];
358367

359368
mockGitHubRunners([]);
@@ -373,9 +382,7 @@ describe('Scale down runners', () => {
373382
await scaleDown();
374383

375384
// assert
376-
expect(mockUntagRunners).toHaveBeenCalledWith(orphanRunner.instanceId, [
377-
{ Key: 'ghr:orphan', Value: 'true' },
378-
]);
385+
expect(mockUntagRunners).toHaveBeenCalledWith(orphanRunner.instanceId, [{ Key: 'ghr:orphan', Value: 'true' }]);
379386
expect(mockTerminateRunners).not.toHaveBeenCalledWith(orphanRunner.instanceId);
380387

381388
// arrange

0 commit comments

Comments
 (0)