Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Feb 6, 2024
1 parent f8e3d73 commit 5c618dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('Cloud Runner Async Workflows', () => {
// Run the job
await CloudRunner.run(buildParameter, baseImage.toString());
const result = await GitHub.getCheckStatus();
expect(result).toBe(`success`);
expect(result.status.toString()[0]).toEqual('2');

// wait for 15 seconds
await new Promise((resolve) => setTimeout(resolve, 15_000));
Expand Down
10 changes: 5 additions & 5 deletions src/model/cloud-runner/tests/cloud-runner-github-checks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ describe('Cloud Runner Github Checks', () => {
githubChecks: `true`,
});
await CloudRunner.setup(buildParameter);
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`create`);
await GitHub.updateGitHubCheck(`direct`, `update`);
await GitHub.updateGitHubCheck(`direct`, `update 2`, `success`, `completed`);
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`direct create`);
await GitHub.updateGitHubCheck(`1 ${new Date().toISOString()}`, `direct`);
await GitHub.updateGitHubCheck(`2 ${new Date().toISOString()}`, `direct`, `success`, `completed`);
},
TIMEOUT_INFINITE,
);
Expand All @@ -49,8 +49,8 @@ describe('Cloud Runner Github Checks', () => {
GitHub.forceAsyncTest = true;
await CloudRunner.setup(buildParameter);
CloudRunner.buildParameters.githubCheckId = await GitHub.createGitHubCheck(`async create`);
await GitHub.updateGitHubCheck(`async Workflow`, `async update`);
await GitHub.updateGitHubCheck(`direct`, `async update 2`, `success`, `completed`);
await GitHub.updateGitHubCheck(`1 ${new Date().toISOString()}`, `async`);
await GitHub.updateGitHubCheck(`2 ${new Date().toISOString()}`, `async`, `success`, `completed`);
GitHub.forceAsyncTest = false;
},
TIMEOUT_INFINITE,
Expand Down

0 comments on commit 5c618dc

Please sign in to comment.