extract lib in caching flow

pull/496/head
Frostebite 2023-02-13 17:57:13 +00:00
parent f29a3cac01
commit b7c8c34f0d
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ describe('Cloud Runner Locking', () => {
await SharedWorkspaceLocking.ReadLines(
`aws s3 ls ${SharedWorkspaceLocking.workspaceRoot}${buildParameters.cacheKey}/`,
)
).filter((x) => x.includes(`${newWorkspaceName}_lock`)).length,
).filter((x) => x.includes(`${newWorkspaceName}_workspace_lock`)).length,
).toBeGreaterThan(0);
expect(
(
@ -60,7 +60,7 @@ describe('Cloud Runner Locking', () => {
)
).filter((x) => x.includes(`${newWorkspaceName}_workspace`)).length,
).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 =
(await SharedWorkspaceLocking.IsWorkspaceLocked(newWorkspaceName, buildParameters)) === true;
expect(isExpectedLockedAfterLocking).toBeTruthy();