mirror of
https://github.com/gradle/actions.git
synced 2025-12-06 07:48:07 +08:00
Handle breaking changes in nock 15.0.0 (encapsulates replyWithError response in object)
This commit is contained in:
@@ -65,10 +65,9 @@ describe('retry', () => {
|
||||
nock('https://services.gradle.org', {allowUnmocked: true})
|
||||
.get('/versions/all')
|
||||
.times(3)
|
||||
.replyWithError({
|
||||
message: 'connect ECONNREFUSED 104.18.191.9:443',
|
||||
code: 'ECONNREFUSED'
|
||||
})
|
||||
.replyWithError(
|
||||
Object.assign(new Error('Connection refused'), { code: 'ECONNREFUSED' }),
|
||||
)
|
||||
|
||||
const validChecksums = await checksums.fetchUnknownChecksums(false, knownChecksumsWithout8_1())
|
||||
expect(validChecksums.checksums.size).toBeGreaterThan(0)
|
||||
|
||||
Reference in New Issue
Block a user