stubbing inspection api

pull/437/head
Frostebite 2022-10-18 23:55:36 +01:00
parent 4ece330bec
commit 11a38deb99
3 changed files with 7 additions and 1 deletions

1
dist/index.js vendored
View File

@ -5328,6 +5328,7 @@ class SharedWorkspaceLocking {
ordered.sort((x) => x.timestamp);
const matches = ordered.filter((x) => x.name.includes(workspace));
const isWorkspaceBelowMax = matches.length > 0 && ordered.indexOf(matches[0]) < buildParametersContext.maxRetainedWorkspaces;
cloud_runner_logger_1.default.log(`isWorkspaceBelowMax ${isWorkspaceBelowMax} = ${matches} > 0 && ${ordered.indexOf(matches[0])} < ${buildParametersContext.maxRetainedWorkspaces}`);
return isWorkspaceBelowMax;
});
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -131,6 +131,11 @@ export class SharedWorkspaceLocking {
const matches = ordered.filter((x) => x.name.includes(workspace));
const isWorkspaceBelowMax =
matches.length > 0 && ordered.indexOf(matches[0]) < buildParametersContext.maxRetainedWorkspaces;
CloudRunnerLogger.log(
`isWorkspaceBelowMax ${isWorkspaceBelowMax} = ${matches} > 0 && ${ordered.indexOf(matches[0])} < ${
buildParametersContext.maxRetainedWorkspaces
}`,
);
return isWorkspaceBelowMax;
}