@@ -26,6 +26,8 @@ import { K8 } from '../../../src/core/k8.mjs'
26
26
27
27
import { getTestCacheDir , getTmpDir , testLogger } from '../../test_util.js'
28
28
29
+ const defaultTimeout = 20000
30
+
29
31
describe ( 'PackageInstallerE2E' , ( ) => {
30
32
const configManager = new ConfigManager ( testLogger )
31
33
const k8 = new K8 ( configManager , testLogger )
@@ -40,7 +42,7 @@ describe('PackageInstallerE2E', () => {
40
42
}
41
43
42
44
configManager . load ( )
43
- } )
45
+ } , defaultTimeout )
44
46
45
47
describe ( 'fetchPlatform' , ( ) => {
46
48
it ( 'should fail with invalid pod' , async ( ) => {
@@ -58,7 +60,7 @@ describe('PackageInstallerE2E', () => {
58
60
. includes ( 'failed to extract platform code in this pod' ) )
59
61
. toBeTruthy ( )
60
62
}
61
- } , 20000 )
63
+ } , defaultTimeout )
62
64
63
65
it ( 'should fail with invalid tag' , async ( ) => {
64
66
expect . assertions ( 1 )
@@ -67,7 +69,7 @@ describe('PackageInstallerE2E', () => {
67
69
} catch ( e ) {
68
70
expect ( e . message . includes ( 'curl: (22) The requested URL returned error: 404' ) ) . toBeTruthy ( )
69
71
}
70
- } , 20000 )
72
+ } , defaultTimeout )
71
73
72
74
it ( 'should succeed with valid tag and pod' , async ( ) => {
73
75
await expect ( installer . fetchPlatform ( podName , packageVersion ) ) . resolves . toBeTruthy ( )
@@ -100,7 +102,7 @@ describe('PackageInstallerE2E', () => {
100
102
expect ( fileContents ) . toBe ( configLines . join ( '\n' ) )
101
103
102
104
fs . rmSync ( tmpDir , { recursive : true } )
103
- } )
105
+ } , defaultTimeout )
104
106
} )
105
107
106
108
describe ( 'copyGossipKeys' , ( ) => {
@@ -154,7 +156,7 @@ describe('PackageInstallerE2E', () => {
154
156
expect ( fileList ) . toContain ( `${ constants . HEDERA_HAPI_PATH } /hedera.key` )
155
157
156
158
fs . rmSync ( tmpDir , { recursive : true } )
157
- } )
159
+ } , defaultTimeout )
158
160
} )
159
161
160
162
describe ( 'copyPlatformConfigFiles' , ( ) => {
@@ -180,6 +182,6 @@ describe('PackageInstallerE2E', () => {
180
182
expect ( fileList ) . toContain ( `${ constants . HEDERA_HAPI_PATH } /data/config/application.properties` )
181
183
expect ( fileList ) . toContain ( `${ constants . HEDERA_HAPI_PATH } /data/config/bootstrap.properties` )
182
184
fs . rmSync ( tmpDir , { recursive : true } )
183
- } , 10000 )
185
+ } , defaultTimeout )
184
186
} )
185
187
} )
0 commit comments