pull/496/head
Frostebite 2023-02-19 00:17:56 +00:00
parent 96d69174f7
commit 80a713a6db
1 changed files with 1 additions and 3 deletions

View File

@ -232,9 +232,7 @@ describe('Cloud Runner Locking', () => {
const workspaces = await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters); const workspaces = await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters);
for (let element of workspaces) { for (let element of workspaces) {
element = `${element.split(`_`)[1]}_${element.split(`_`)[2]}`; element = `${element.split(`_`)[1]}_${element.split(`_`)[2]}`;
expect( expect((await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters)).join()).toContain(element);
(await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters)).filter((x) => x.includes(element)),
).toHaveLength(1);
expect( expect(
(await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters)).filter((x) => x.endsWith(`_workspace`)), (await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters)).filter((x) => x.endsWith(`_workspace`)),
).toHaveLength(1); ).toHaveLength(1);