Skip to content

Commit

Permalink
fix: failing test
Browse files Browse the repository at this point in the history
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
  • Loading branch information
Ivo-Yankov committed Sep 20, 2024
1 parent 5788697 commit 58ea09e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ export function addSaveContextParser (ctx) {
export function addLoadContextParser (ctx, ctxData) {
const config = /** @type {NodeAddConfigClass} **/ ctx.config
ctx.signingCertDer = new Uint8Array(ctxData.signingCertDer.split(','))
ctx.gossipEndpoints = this.prepareEndpoints(ctx.config.endpointType, ctxData.gossipEndpoints, constants.HEDERA_NODE_INTERNAL_GOSSIP_PORT)
ctx.grpcServiceEndpoints = this.prepareEndpoints(ctx.config.endpointType, ctxData.grpcServiceEndpoints, constants.HEDERA_NODE_EXTERNAL_GOSSIP_PORT)
ctx.gossipEndpoints = prepareEndpoints(ctx.config.endpointType, ctxData.gossipEndpoints, constants.HEDERA_NODE_INTERNAL_GOSSIP_PORT)
ctx.grpcServiceEndpoints = prepareEndpoints(ctx.config.endpointType, ctxData.grpcServiceEndpoints, constants.HEDERA_NODE_EXTERNAL_GOSSIP_PORT)
ctx.adminKey = PrivateKey.fromStringED25519(ctxData.adminKey)
config.nodeId = ctxData.newNode.name
config.existingNodeIds = ctxData.existingNodeIds
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/commands/separate_node_delete.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import fs from 'fs'

describe('Node delete via separated commands', () => {
const namespace = 'node-delete-separate'
const nodeId = 'node1'
const nodeId = 'node2'
const argv = getDefaultArgv()
argv[flags.nodeIDs.name] = 'node1,node2,node3,node4'
argv[flags.nodeID.name] = nodeId
Expand Down

0 comments on commit 58ea09e

Please sign in to comment.