File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lambdas/functions/control-plane/src/pool Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ describe('Test simple pool.', () => {
268
268
} ) ;
269
269
270
270
it ( 'Should not top up if pool size is invalid.' , async ( ) => {
271
+ process . env . RUNNER_LABELS = undefined ;
271
272
await expect ( await adjust ( { poolSize : - 2 } ) ) . resolves ;
272
273
expect ( createRunners ) . not . toHaveBeenCalled ( ) ;
273
274
} ) ;
@@ -369,6 +370,10 @@ describe('Test simple pool.', () => {
369
370
status : 'queued' ,
370
371
labels : [ ...LABELS , 'label3' ] ,
371
372
} ,
373
+ {
374
+ status : 'queued' ,
375
+ labels : [ ] ,
376
+ } ,
372
377
] ) ;
373
378
await expect ( await adjust ( { poolSize : - 1 } ) ) . resolves ;
374
379
expect ( createRunners ) . not . toHaveBeenCalled ( ) ;
Original file line number Diff line number Diff line change @@ -69,8 +69,6 @@ export async function adjust(event: PoolEvent): Promise<void> {
69
69
const ghAuth = await createGithubInstallationAuth ( installationId , ghesApiUrl ) ;
70
70
const githubInstallationClient = await createOctoClient ( ghAuth . token , ghesApiUrl ) ;
71
71
72
- githubInstallationClient . paginate ;
73
-
74
72
// Get statusses of runners registed in GitHub
75
73
const runnerStatusses = await getGitHubRegisteredRunnnerStatusses (
76
74
githubInstallationClient ,
You can’t perform that action at this time.
0 commit comments