pull/496/head
Frostebite 2023-02-18 22:43:10 +00:00
parent 4b99fa3c2a
commit e898fb615d
1 changed files with 4 additions and 7 deletions

View File

@ -235,13 +235,10 @@ 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(element).toMatch(
files
.filter((x) => {
const lock = files.find((x) => {
return x.endsWith(`_lock`);
})
.join(),
);
});
expect(lock).toContain(element);
expect(isLocked).toBeTruthy();
expect(isBelowMax).toBeTruthy();
if (!isLocked && isBelowMax) {