extract lib in caching flow
parent
f29a3cac01
commit
b7c8c34f0d
|
@ -51,7 +51,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
await SharedWorkspaceLocking.ReadLines(
|
await SharedWorkspaceLocking.ReadLines(
|
||||||
`aws s3 ls ${SharedWorkspaceLocking.workspaceRoot}${buildParameters.cacheKey}/`,
|
`aws s3 ls ${SharedWorkspaceLocking.workspaceRoot}${buildParameters.cacheKey}/`,
|
||||||
)
|
)
|
||||||
).filter((x) => x.includes(`${newWorkspaceName}_lock`)).length,
|
).filter((x) => x.includes(`${newWorkspaceName}_workspace_lock`)).length,
|
||||||
).toBeGreaterThan(0);
|
).toBeGreaterThan(0);
|
||||||
expect(
|
expect(
|
||||||
(
|
(
|
||||||
|
@ -60,7 +60,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
)
|
)
|
||||||
).filter((x) => x.includes(`${newWorkspaceName}_workspace`)).length,
|
).filter((x) => x.includes(`${newWorkspaceName}_workspace`)).length,
|
||||||
).toBeGreaterThan(0);
|
).toBeGreaterThan(0);
|
||||||
expect(allLocks.filter((x) => x.includes(`${newWorkspaceName}_lock`)).length).toBeGreaterThan(0);
|
expect(allLocks.filter((x) => x.includes(`${newWorkspaceName}_workspace_lock`)).length).toBeGreaterThan(0);
|
||||||
const isExpectedLockedAfterLocking =
|
const isExpectedLockedAfterLocking =
|
||||||
(await SharedWorkspaceLocking.IsWorkspaceLocked(newWorkspaceName, buildParameters)) === true;
|
(await SharedWorkspaceLocking.IsWorkspaceLocked(newWorkspaceName, buildParameters)) === true;
|
||||||
expect(isExpectedLockedAfterLocking).toBeTruthy();
|
expect(isExpectedLockedAfterLocking).toBeTruthy();
|
||||||
|
|
Loading…
Reference in New Issue