mirror of
https://github.com/actions/deploy-pages.git
synced 2026-02-09 03:45:15 +00:00
Stabilize some tests
This commit is contained in:
@@ -720,6 +720,8 @@ describe('Deployment', () => {
|
|||||||
return process.env.GITHUB_TOKEN
|
return process.env.GITHUB_TOKEN
|
||||||
case 'error_count':
|
case 'error_count':
|
||||||
return 10
|
return 10
|
||||||
|
case 'reporting_interval':
|
||||||
|
return 42 // The default of 5000 is too long for the test
|
||||||
case 'timeout':
|
case 'timeout':
|
||||||
return 42
|
return 42
|
||||||
default:
|
default:
|
||||||
@@ -746,7 +748,6 @@ describe('Deployment', () => {
|
|||||||
artifactExchangeScope.done()
|
artifactExchangeScope.done()
|
||||||
})
|
})
|
||||||
|
|
||||||
// TODO: Intermittently fails if the other test does
|
|
||||||
it('sets output to success when timeout is set but not reached', async () => {
|
it('sets output to success when timeout is set but not reached', async () => {
|
||||||
process.env.GITHUB_SHA = 'valid-build-version'
|
process.env.GITHUB_SHA = 'valid-build-version'
|
||||||
|
|
||||||
@@ -804,6 +805,8 @@ describe('Deployment', () => {
|
|||||||
return process.env.GITHUB_TOKEN
|
return process.env.GITHUB_TOKEN
|
||||||
case 'error_count':
|
case 'error_count':
|
||||||
return 10
|
return 10
|
||||||
|
case 'reporting_interval':
|
||||||
|
return 0 // The default of 5000 is too long for the test
|
||||||
case 'timeout':
|
case 'timeout':
|
||||||
return 42
|
return 42
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user