diff --git a/.gitignore b/.gitignore index 276fe10733..2cd0981f6b 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ secrets.auto.tfvars node_modules/ site/ +lambdas/package-lock.json diff --git a/lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts b/lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts index 9549e7cb2d..49f2e058a3 100644 --- a/lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts +++ b/lambdas/functions/control-plane/src/scale-runners/scale-up.test.ts @@ -1756,6 +1756,13 @@ describe('Retry mechanism tests', () => { await scaleUpModule.scaleUp(messages); + // Verify listEC2Runners is called to check current runner count + expect(listEC2Runners).toHaveBeenCalledWith({ + environment: 'unit-test-environment', + runnerType: 'Org', + runnerOwner: TEST_DATA_SINGLE.repositoryOwner, + }); + // publishRetryMessage should still be called even though no runners will be created expect(mockPublishRetryMessage).toHaveBeenCalledTimes(2); expect(createRunner).not.toHaveBeenCalled();