mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-05-01 07:08:04 +08:00
Retry artifact uploads on HTTP 500 (#833)
* Retry on 500 * bump package version * fix tests * Remove spurious change * fix another test * Roll back package version
This commit is contained in:
@@ -107,8 +107,8 @@ test('retry fails after exhausting retries', async () => {
|
||||
})
|
||||
|
||||
test('retry fails after non-retryable status code', async () => {
|
||||
await testRetry([500, 200], {
|
||||
responseCode: 500,
|
||||
errorMessage: 'test failed: Artifact service responded with 500'
|
||||
await testRetry([400, 200], {
|
||||
responseCode: 400,
|
||||
errorMessage: 'test failed: Artifact service responded with 400'
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user