mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-07 20:35:33 -04:00
cleanup async parameter
This commit is contained in:
parent
e296ef2dc1
commit
dd13cba2ce
@ -6,7 +6,7 @@ import CloudRunnerOptions from '../options/cloud-runner-options';
|
|||||||
import setups from './cloud-runner-suite.test';
|
import setups from './cloud-runner-suite.test';
|
||||||
import { OptionValues } from 'commander';
|
import { OptionValues } from 'commander';
|
||||||
import GitHub from '../../github';
|
import GitHub from '../../github';
|
||||||
|
export const TIMEOUT_INFINITE = 1e9;
|
||||||
async function CreateParameters(overrides: OptionValues | undefined) {
|
async function CreateParameters(overrides: OptionValues | undefined) {
|
||||||
if (overrides) Cli.options = overrides;
|
if (overrides) Cli.options = overrides;
|
||||||
|
|
||||||
@ -17,7 +17,9 @@ describe('Cloud Runner Github Checks', () => {
|
|||||||
it('Responds', () => {});
|
it('Responds', () => {});
|
||||||
|
|
||||||
if (CloudRunnerOptions.cloudRunnerDebug && CloudRunnerOptions.providerStrategy === `local-docker`) {
|
if (CloudRunnerOptions.cloudRunnerDebug && CloudRunnerOptions.providerStrategy === `local-docker`) {
|
||||||
it('Check Handling Direct', async () => {
|
it(
|
||||||
|
'Check Handling Direct',
|
||||||
|
async () => {
|
||||||
// Setup parameters
|
// Setup parameters
|
||||||
const buildParameter = await CreateParameters({
|
const buildParameter = await CreateParameters({
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
@ -29,8 +31,12 @@ describe('Cloud Runner Github Checks', () => {
|
|||||||
await CloudRunner.setup(buildParameter);
|
await CloudRunner.setup(buildParameter);
|
||||||
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
||||||
await GitHub.updateGitHubCheck(`t`, `t2`);
|
await GitHub.updateGitHubCheck(`t`, `t2`);
|
||||||
}, 1_000_000_000);
|
},
|
||||||
it('Check Handling Via Async Workflow', async () => {
|
TIMEOUT_INFINITE,
|
||||||
|
);
|
||||||
|
it(
|
||||||
|
'Check Handling Via Async Workflow',
|
||||||
|
async () => {
|
||||||
// Setup parameters
|
// Setup parameters
|
||||||
const buildParameter = await CreateParameters({
|
const buildParameter = await CreateParameters({
|
||||||
versioning: 'None',
|
versioning: 'None',
|
||||||
@ -44,6 +50,8 @@ describe('Cloud Runner Github Checks', () => {
|
|||||||
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`t`);
|
||||||
await GitHub.updateGitHubCheck(`t`, `t2`);
|
await GitHub.updateGitHubCheck(`t`, `t2`);
|
||||||
GitHub.forceAsyncTest = false;
|
GitHub.forceAsyncTest = false;
|
||||||
}, 1_000_000_000);
|
},
|
||||||
|
TIMEOUT_INFINITE,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user