Skip to content

Commit

Permalink
test: fix cli e2e test for platform version beyond v0.41 (#531)
Browse files Browse the repository at this point in the history
Signed-off-by: Lenin Mehedy <lenin.mehedy@swirldslabs.com>
Signed-off-by: Quan Nguyen <quan@swirldslabs.com>
Co-authored-by: Quan Nguyen <quan@swirldslabs.com>
  • Loading branch information
leninmehedy and qnswirlds authored Nov 14, 2023
1 parent dc1e748 commit cb7beb8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ describe('PackageInstallerE2E', () => {
const configLines = await installer.prepareConfigTxt(nodeIDs, configPath, releaseTag)

// verify format is correct
expect(configLines.length).toBe(5)
expect(configLines.length).toBe(6)
expect(configLines[0]).toBe(`swirld, ${constants.CLUSTER_NAME}`)
expect(configLines[1]).toBe(`app, ${constants.HEDERA_APP_JAR}`)
expect(configLines[2]).toContain('address, 0, node0, node0, 1')
expect(configLines[3]).toContain('address, 1, node1, node1, 1')
expect(configLines[4]).toContain('address, 2, node2, node2, 1')
expect(configLines[5]).toBe('nextNodeId, 3')

// verify the file exists
expect(fs.existsSync(configPath)).toBeTruthy()
Expand Down

0 comments on commit cb7beb8

Please sign in to comment.