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 isLocked = await SharedWorkspaceLocking.IsWorkspaceLocked(element, buildParameters);
const isBelowMax = await SharedWorkspaceLocking.IsWorkspaceBelowMax(element, buildParameters); const isBelowMax = await SharedWorkspaceLocking.IsWorkspaceBelowMax(element, buildParameters);
CloudRunnerLogger.log(`workspace ${element} locked:${isLocked} below max:${isBelowMax}`); CloudRunnerLogger.log(`workspace ${element} locked:${isLocked} below max:${isBelowMax}`);
expect(element).toMatch( const lock = files.find((x) => {
files return x.endsWith(`_lock`);
.filter((x) => { });
return x.endsWith(`_lock`); expect(lock).toContain(element);
})
.join(),
);
expect(isLocked).toBeTruthy(); expect(isLocked).toBeTruthy();
expect(isBelowMax).toBeTruthy(); expect(isBelowMax).toBeTruthy();
if (!isLocked && isBelowMax) { if (!isLocked && isBelowMax) {