@@ -42,13 +42,13 @@ describe('uploadChunkTimeoutEnv', () => {
42
42
expect ( config . getUploadChunkTimeout ( ) ) . toBe ( 300000 )
43
43
} )
44
44
45
- it ( 'should return value set in ACTIONS_UPLOAD_TIMEOUT_MS ' , ( ) => {
46
- process . env . ACTIONS_UPLOAD_TIMEOUT_MS = '150000'
45
+ it ( 'should return value set in ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS ' , ( ) => {
46
+ process . env . ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS = '150000'
47
47
expect ( config . getUploadChunkTimeout ( ) ) . toBe ( 150000 )
48
48
} )
49
49
50
- it ( 'should throw if value set in ACTIONS_UPLOAD_TIMEOUT_MS is invalid' , ( ) => {
51
- process . env . ACTIONS_UPLOAD_TIMEOUT_MS = 'abc'
50
+ it ( 'should throw if value set in ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS is invalid' , ( ) => {
51
+ process . env . ACTIONS_ARTIFACT_UPLOAD_TIMEOUT_MS = 'abc'
52
52
expect ( ( ) => {
53
53
config . getUploadChunkTimeout ( )
54
54
} ) . toThrow ( )
@@ -71,31 +71,31 @@ describe('uploadConcurrencyEnv', () => {
71
71
expect ( config . getConcurrency ( ) ) . toBe ( 300 )
72
72
} )
73
73
74
- it ( 'should return override value when ACTIONS_UPLOAD_CONCURRENCY is set' , ( ) => {
74
+ it ( 'should return override value when ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is set' , ( ) => {
75
75
; ( os . cpus as jest . Mock ) . mockReturnValue ( new Array ( 4 ) )
76
- process . env . ACTIONS_UPLOAD_CONCURRENCY = '10'
76
+ process . env . ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY = '10'
77
77
expect ( config . getConcurrency ( ) ) . toBe ( 10 )
78
78
} )
79
79
80
- it ( 'should throw with invalid value of ACTIONS_UPLOAD_CONCURRENCY ' , ( ) => {
80
+ it ( 'should throw with invalid value of ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY ' , ( ) => {
81
81
; ( os . cpus as jest . Mock ) . mockReturnValue ( new Array ( 4 ) )
82
- process . env . ACTIONS_UPLOAD_CONCURRENCY = 'abc'
82
+ process . env . ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY = 'abc'
83
83
expect ( ( ) => {
84
84
config . getConcurrency ( )
85
85
} ) . toThrow ( )
86
86
} )
87
87
88
- it ( 'should throw if ACTIONS_UPLOAD_CONCURRENCY is < 1' , ( ) => {
88
+ it ( 'should throw if ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY is < 1' , ( ) => {
89
89
; ( os . cpus as jest . Mock ) . mockReturnValue ( new Array ( 4 ) )
90
- process . env . ACTIONS_UPLOAD_CONCURRENCY = '0'
90
+ process . env . ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY = '0'
91
91
expect ( ( ) => {
92
92
config . getConcurrency ( )
93
93
} ) . toThrow ( )
94
94
} )
95
95
96
96
it ( 'cannot go over currency cap when override value is greater' , ( ) => {
97
97
; ( os . cpus as jest . Mock ) . mockReturnValue ( new Array ( 4 ) )
98
- process . env . ACTIONS_UPLOAD_CONCURRENCY = '40'
98
+ process . env . ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY = '40'
99
99
expect ( config . getConcurrency ( ) ) . toBe ( 32 )
100
100
} )
101
101
} )
0 commit comments