diff --git a/src/model/cloud-runner/tests/cloud-runner-locking.test.ts b/src/model/cloud-runner/tests/cloud-runner-locking.test.ts index c84e460e..9660a38c 100644 --- a/src/model/cloud-runner/tests/cloud-runner-locking.test.ts +++ b/src/model/cloud-runner/tests/cloud-runner-locking.test.ts @@ -236,10 +236,12 @@ describe('Cloud Runner Locking', () => { const isBelowMax = await SharedWorkspaceLocking.IsWorkspaceBelowMax(element, buildParameters); CloudRunnerLogger.log(`workspace ${element} locked:${isLocked} below max:${isBelowMax}`); expect( - files.filter((x) => { - return x.includes(element) && x.endsWith(`_lock`); - }), - ).toHaveLength(1); + files + .filter((x) => { + return x.endsWith(`_lock`); + }) + .join(), + ).toMatch(element); expect(isLocked).toBeTruthy(); expect(isBelowMax).toBeTruthy(); if (!isLocked && isBelowMax) {