mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-31 10:00:01 +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}) | ||||
|         .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) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Jerome Prinet
						Jerome Prinet