Skip to content

Commit 0d04b49

Browse files
committed
updated timeouts and delays to support concurrent PRs running in pipeline
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent c8ce143 commit 0d04b49

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

test/e2e/core/platform_installer_e2e.test.mjs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import { K8 } from '../../../src/core/k8.mjs'
2626

2727
import { getTestCacheDir, getTmpDir, testLogger } from '../../test_util.js'
2828

29+
const defaultTimeout = 20000
30+
2931
describe('PackageInstallerE2E', () => {
3032
const configManager = new ConfigManager(testLogger)
3133
const k8 = new K8(configManager, testLogger)
@@ -40,7 +42,7 @@ describe('PackageInstallerE2E', () => {
4042
}
4143

4244
configManager.load()
43-
})
45+
}, defaultTimeout)
4446

4547
describe('fetchPlatform', () => {
4648
it('should fail with invalid pod', async () => {
@@ -58,7 +60,7 @@ describe('PackageInstallerE2E', () => {
5860
.includes('failed to extract platform code in this pod'))
5961
.toBeTruthy()
6062
}
61-
}, 20000)
63+
}, defaultTimeout)
6264

6365
it('should fail with invalid tag', async () => {
6466
expect.assertions(1)
@@ -67,7 +69,7 @@ describe('PackageInstallerE2E', () => {
6769
} catch (e) {
6870
expect(e.message.includes('curl: (22) The requested URL returned error: 404')).toBeTruthy()
6971
}
70-
}, 20000)
72+
}, defaultTimeout)
7173

7274
it('should succeed with valid tag and pod', async () => {
7375
await expect(installer.fetchPlatform(podName, packageVersion)).resolves.toBeTruthy()
@@ -100,7 +102,7 @@ describe('PackageInstallerE2E', () => {
100102
expect(fileContents).toBe(configLines.join('\n'))
101103

102104
fs.rmSync(tmpDir, { recursive: true })
103-
})
105+
}, defaultTimeout)
104106
})
105107

106108
describe('copyGossipKeys', () => {
@@ -154,7 +156,7 @@ describe('PackageInstallerE2E', () => {
154156
expect(fileList).toContain(`${constants.HEDERA_HAPI_PATH}/hedera.key`)
155157

156158
fs.rmSync(tmpDir, { recursive: true })
157-
})
159+
}, defaultTimeout)
158160
})
159161

160162
describe('copyPlatformConfigFiles', () => {
@@ -180,6 +182,6 @@ describe('PackageInstallerE2E', () => {
180182
expect(fileList).toContain(`${constants.HEDERA_HAPI_PATH}/data/config/application.properties`)
181183
expect(fileList).toContain(`${constants.HEDERA_HAPI_PATH}/data/config/bootstrap.properties`)
182184
fs.rmSync(tmpDir, { recursive: true })
183-
}, 10000)
185+
}, defaultTimeout)
184186
})
185187
})

test/e2e/e2e_node_util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export function e2eNodeKeyRefreshAddTest (keyFormat, testName, mode, releaseTag
158158
await nodeCmd.close()
159159
await sleep(10000) // sleep to wait for node to finish starting
160160
}
161-
}, 300000)
161+
}, 600000)
162162

163163
balanceQueryShouldSucceed(accountManager, nodeCmd, namespace)
164164

0 commit comments

Comments
 (0)