mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Attempt to limit failures in wrapper-validation tests (#490)
- Reduce requests involved in checksums.retryTest - Reduce requests involved in validate test - Fetch checksum values in batches
This commit is contained in:
@@ -2,7 +2,7 @@ import * as checksums from '../../../src/wrapper-validation/checksums'
|
||||
import nock from 'nock'
|
||||
import {afterEach, describe, expect, test, jest} from '@jest/globals'
|
||||
|
||||
jest.setTimeout(30000)
|
||||
jest.setTimeout(60000)
|
||||
|
||||
const CHECKSUM_8_1 = 'ed2c26eba7cfb93cc2b7785d05e534f07b5b48b5e7fc941921cd098628abca58'
|
||||
|
||||
@@ -70,8 +70,8 @@ describe('retry', () => {
|
||||
code: 'ECONNREFUSED'
|
||||
})
|
||||
|
||||
const validChecksums = await checksums.fetchUnknownChecksums(false, new checksums.WrapperChecksums)
|
||||
expect(validChecksums.checksums.size).toBeGreaterThan(10)
|
||||
const validChecksums = await checksums.fetchUnknownChecksums(false, knownChecksumsWithout8_1())
|
||||
expect(validChecksums.checksums.size).toBeGreaterThan(0)
|
||||
nock.isDone()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user