pull/496/head
Frostebite 2023-02-17 21:00:07 +00:00
parent 95e1c1e09d
commit c8540e5775
1 changed files with 5 additions and 0 deletions

View File

@ -235,6 +235,11 @@ describe('Cloud Runner Locking', () => {
const isLocked = await SharedWorkspaceLocking.IsWorkspaceLocked(element, buildParameters);
const isBelowMax = await SharedWorkspaceLocking.IsWorkspaceBelowMax(element, buildParameters);
CloudRunnerLogger.log(`workspace ${element} locked:${isLocked} below max:${isBelowMax}`);
expect(
files.filter((x) => {
return x.includes(element) && x.endsWith(`_lock`);
}),
).toHaveLength(1);
expect(isLocked).toBeTruthy();
expect(isBelowMax).toBeTruthy();
if (!isLocked && isBelowMax) {