pull/496/head
Frostebite 2023-02-16 21:22:30 +00:00
parent d42670c9c0
commit fd3548335b
1 changed files with 3 additions and 3 deletions

View File

@ -172,9 +172,9 @@ describe('Cloud Runner Locking', () => {
expect(await SharedWorkspaceLocking.LockWorkspace(newWorkspaceName, runId, buildParameters)).toBeTruthy();
expect(await SharedWorkspaceLocking.HasWorkspaceLock(newWorkspaceName, runId, buildParameters)).toBeTruthy();
expect(await SharedWorkspaceLocking.DoesWorkspaceExist(newWorkspaceName, buildParameters)).toBeTruthy();
expect(await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters)).toBe(1);
expect(await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters)).toBe(1);
expect(await SharedWorkspaceLocking.GetFreeWorkspaces(buildParameters)).toBe(0);
expect(await SharedWorkspaceLocking.GetAllWorkspaces(buildParameters)).toHaveLength(1);
expect(await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters)).toHaveLength(1);
expect(await SharedWorkspaceLocking.GetFreeWorkspaces(buildParameters)).toHaveLength(0);
}, 150000);
it(`Get Or Create From Unlocked Was Locked`, async () => {
Cli.options.retainWorkspaces = true;