Skip to content

Commit 0cf5181

Browse files
committed
Try increasing retry first
1 parent bccb0fa commit 0cf5181

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/fix/src/retry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function sleep(ms: number): Promise<void> {
1616
*/
1717
export async function retry<T>(
1818
fn: () => Promise<T | null | undefined> | T | null | undefined,
19-
maxAttempts = 6,
19+
maxAttempts = 10,
2020
baseDelay = 2000,
2121
attempt = 1,
2222
): Promise<T | undefined> {

tests/site-with-errors.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('site-with-errors', () => {
1515
results = JSON.parse(fs.readFileSync(process.env.CACHE_PATH!, 'utf-8'))
1616
})
1717

18-
it.skip('cache has expected results', () => {
18+
it('cache has expected results', () => {
1919
const actual = results.map(({issue: {url: issueUrl}, pullRequest: {url: pullRequestUrl}, findings}) => {
2020
const {problemUrl, solutionLong, screenshotId, ...finding} = findings[0]
2121
// Check volatile fields for existence only
@@ -180,7 +180,7 @@ describe('site-with-errors', () => {
180180
}
181181
})
182182

183-
it.skip('pull requests exist and have expected author, state, and assignee', async () => {
183+
it('pull requests exist and have expected author, state, and assignee', async () => {
184184
for (const pullRequest of pullRequests) {
185185
expect(pullRequest.user.login).toBe('Copilot')
186186
expect(pullRequest.state).toBe('open')

0 commit comments

Comments
 (0)