Max workspaces and strong consistency locks
parent
6beb4d0ba9
commit
b8daa46233
|
|
@ -42,7 +42,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
expect(isExpectedLockedAfterLocking).toBeTruthy();
|
expect(isExpectedLockedAfterLocking).toBeTruthy();
|
||||||
const locksBeforeRelease = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
const locksBeforeRelease = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
||||||
CloudRunnerLogger.log(JSON.stringify(locksBeforeRelease, undefined, 4));
|
CloudRunnerLogger.log(JSON.stringify(locksBeforeRelease, undefined, 4));
|
||||||
expect(locksBeforeRelease.length > 1).toBeTruthy();
|
expect(locksBeforeRelease.length === 1).toBeTruthy();
|
||||||
await SharedWorkspaceLocking.ReleaseWorkspace(newWorkspaceName, runId, buildParameters);
|
await SharedWorkspaceLocking.ReleaseWorkspace(newWorkspaceName, runId, buildParameters);
|
||||||
const locks = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
const locks = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
||||||
expect(locks.length === 1).toBeTruthy();
|
expect(locks.length === 1).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue