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