mirror of https://github.com/actions/toolkit
testing ci
parent
0d39975814
commit
98e1a813db
|
@ -13,7 +13,7 @@
|
||||||
"lint": "eslint packages/**/*.ts",
|
"lint": "eslint packages/**/*.ts",
|
||||||
"lint-fix": "eslint packages/**/*.ts --fix",
|
"lint-fix": "eslint packages/**/*.ts --fix",
|
||||||
"new-package": "scripts/create-package",
|
"new-package": "scripts/create-package",
|
||||||
"test": "jest --testTimeout 10000"
|
"test": "jest --testTimeout 20000"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.4",
|
"@types/jest": "^29.5.4",
|
||||||
|
|
|
@ -295,13 +295,14 @@ describe('download-artifact', () => {
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
await downloadArtifactPublic(
|
await expect(
|
||||||
|
downloadArtifactPublic(
|
||||||
fixtures.artifactID,
|
fixtures.artifactID,
|
||||||
fixtures.repositoryOwner,
|
fixtures.repositoryOwner,
|
||||||
fixtures.repositoryName,
|
fixtures.repositoryName,
|
||||||
fixtures.token
|
fixtures.token
|
||||||
)
|
)
|
||||||
|
).rejects.toBeInstanceOf(Error)
|
||||||
// jest.runAllTimers()
|
// jest.runAllTimers()
|
||||||
|
|
||||||
expect(downloadArtifactMock).toHaveBeenCalledWith({
|
expect(downloadArtifactMock).toHaveBeenCalledWith({
|
||||||
|
@ -313,15 +314,6 @@ describe('download-artifact', () => {
|
||||||
redirect: 'manual'
|
redirect: 'manual'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
// expect(mockHttpClient).toHaveBeenCalledWith(getUserAgentString())
|
|
||||||
await expect(
|
|
||||||
downloadArtifactPublic(
|
|
||||||
fixtures.artifactID,
|
|
||||||
fixtures.repositoryOwner,
|
|
||||||
fixtures.repositoryName,
|
|
||||||
fixtures.token
|
|
||||||
)
|
|
||||||
).rejects.toBeInstanceOf(Error)
|
|
||||||
}, 40000)
|
}, 40000)
|
||||||
it('should fail if blob storage response is non-200 after 5 retries', async () => {
|
it('should fail if blob storage response is non-200 after 5 retries', async () => {
|
||||||
const downloadArtifactMock = github.getOctokit(fixtures.token).rest
|
const downloadArtifactMock = github.getOctokit(fixtures.token).rest
|
||||||
|
|
Loading…
Reference in New Issue