pull/496/head
Frostebite 2023-02-17 22:45:47 +00:00
parent a359bb9324
commit 3aaa608bf5
1 changed files with 6 additions and 4 deletions

View File

@ -236,10 +236,12 @@ describe('Cloud Runner Locking', () => {
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( expect(
files.filter((x) => { files
return x.includes(element) && x.endsWith(`_lock`); .filter((x) => {
}), return x.endsWith(`_lock`);
).toHaveLength(1); })
.join(),
).toMatch(element);
expect(isLocked).toBeTruthy(); expect(isLocked).toBeTruthy();
expect(isBelowMax).toBeTruthy(); expect(isBelowMax).toBeTruthy();
if (!isLocked && isBelowMax) { if (!isLocked && isBelowMax) {