cleanup logging for github check updates
parent
e1f3cb3e99
commit
e7b180476b
|
|
@ -87,7 +87,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
|
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
expect(CloudRunner.lockedWorkspace).toMatch(newWorkspaceName);
|
expect(CloudRunner.lockedWorkspace).toMatch(newWorkspaceName);
|
||||||
}, 150000);
|
}, 300000);
|
||||||
it(`Get Or Create From Locked`, async () => {
|
it(`Get Or Create From Locked`, async () => {
|
||||||
const overrides: any = {
|
const overrides: any = {
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
|
|
@ -113,7 +113,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId2, buildParameters),
|
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId2, buildParameters),
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
expect(CloudRunner.lockedWorkspace).not.toMatch(newWorkspaceName);
|
expect(CloudRunner.lockedWorkspace).not.toMatch(newWorkspaceName);
|
||||||
}, 150000);
|
}, 300000);
|
||||||
it(`Get Or Create After Double Lock And One Unlock`, async () => {
|
it(`Get Or Create After Double Lock And One Unlock`, async () => {
|
||||||
const overrides: any = {
|
const overrides: any = {
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
|
|
@ -142,7 +142,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId2, buildParameters),
|
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId2, buildParameters),
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
expect(CloudRunner.lockedWorkspace).not.toContain(newWorkspaceName);
|
expect(CloudRunner.lockedWorkspace).not.toContain(newWorkspaceName);
|
||||||
}, 150000);
|
}, 300000);
|
||||||
it(`Get Or Create After Double Lock And Unlock`, async () => {
|
it(`Get Or Create After Double Lock And Unlock`, async () => {
|
||||||
const overrides: any = {
|
const overrides: any = {
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
|
|
@ -172,7 +172,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId2, buildParameters),
|
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId2, buildParameters),
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
expect(CloudRunner.lockedWorkspace).toContain(newWorkspaceName);
|
expect(CloudRunner.lockedWorkspace).toContain(newWorkspaceName);
|
||||||
}, 150000);
|
}, 300000);
|
||||||
it(`0 free workspaces after locking`, async () => {
|
it(`0 free workspaces after locking`, async () => {
|
||||||
const overrides: any = {
|
const overrides: any = {
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
|
|
@ -233,7 +233,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
}
|
}
|
||||||
expect(result).toHaveLength(0);
|
expect(result).toHaveLength(0);
|
||||||
expect(await SharedWorkspaceLocking.GetFreeWorkspaces(buildParameters)).toHaveLength(0);
|
expect(await SharedWorkspaceLocking.GetFreeWorkspaces(buildParameters)).toHaveLength(0);
|
||||||
}, 150000);
|
}, 300000);
|
||||||
it(`Get Or Create From Unlocked Was Locked`, async () => {
|
it(`Get Or Create From Unlocked Was Locked`, async () => {
|
||||||
const overrides: any = {
|
const overrides: any = {
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
|
|
@ -255,6 +255,6 @@ describe('Cloud Runner Locking', () => {
|
||||||
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
|
await SharedWorkspaceLocking.GetOrCreateLockedWorkspace(newWorkspaceName, runId, buildParameters),
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
expect(CloudRunner.lockedWorkspace).toMatch(newWorkspaceName);
|
expect(CloudRunner.lockedWorkspace).toMatch(newWorkspaceName);
|
||||||
}, 150000);
|
}, 300000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue