Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon committed Feb 22, 2024
1 parent f9bcabd commit 2f285f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/commands/node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -573,15 +573,15 @@ export class NodeCommand extends BaseCommand {

try {
// Retrieve the AddressBook as base64
const base64NodeAddressBook = await this.accountManager.prepareAddressBookBase64(nodeClient)
this.logger.showUser(chalk.yellow(`${base64NodeAddressBook}`))

return base64NodeAddressBook
return await this.accountManager.prepareAddressBookBase64(nodeClient)
} catch (e) {
throw new FullstackTestingError('an error was encountered while trying to prepare the address book')
} finally {
await this.accountManager.stopPortForwards()
if (nodeClient) {
nodeClient.close()
}
await sleep(5) // sleep a few ticks to allow network connections to close
nodeClient.destroy()
}
}

Expand Down

0 comments on commit 2f285f4

Please sign in to comment.