fixes
parent
a359bb9324
commit
3aaa608bf5
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue