stubbing inspection api
parent
4ece330bec
commit
11a38deb99
|
|
@ -5328,6 +5328,7 @@ class SharedWorkspaceLocking {
|
||||||
ordered.sort((x) => x.timestamp);
|
ordered.sort((x) => x.timestamp);
|
||||||
const matches = ordered.filter((x) => x.name.includes(workspace));
|
const matches = ordered.filter((x) => x.name.includes(workspace));
|
||||||
const isWorkspaceBelowMax = matches.length > 0 && ordered.indexOf(matches[0]) < buildParametersContext.maxRetainedWorkspaces;
|
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;
|
return isWorkspaceBelowMax;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -131,6 +131,11 @@ export class SharedWorkspaceLocking {
|
||||||
const matches = ordered.filter((x) => x.name.includes(workspace));
|
const matches = ordered.filter((x) => x.name.includes(workspace));
|
||||||
const isWorkspaceBelowMax =
|
const isWorkspaceBelowMax =
|
||||||
matches.length > 0 && ordered.indexOf(matches[0]) < buildParametersContext.maxRetainedWorkspaces;
|
matches.length > 0 && ordered.indexOf(matches[0]) < buildParametersContext.maxRetainedWorkspaces;
|
||||||
|
CloudRunnerLogger.log(
|
||||||
|
`isWorkspaceBelowMax ${isWorkspaceBelowMax} = ${matches} > 0 && ${ordered.indexOf(matches[0])} < ${
|
||||||
|
buildParametersContext.maxRetainedWorkspaces
|
||||||
|
}`,
|
||||||
|
);
|
||||||
|
|
||||||
return isWorkspaceBelowMax;
|
return isWorkspaceBelowMax;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue