fix
parent
4b99fa3c2a
commit
e898fb615d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue