pull/496/head
Frostebite 2023-02-18 21:12:24 +00:00
parent 3aaa608bf5
commit c0e55c6012
1 changed files with 2 additions and 2 deletions

View File

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