Skip to content

Commit

Permalink
fix: additional needed await
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <[email protected]>
  • Loading branch information
nathanklick committed Feb 16, 2025
1 parent 4f8bef1 commit 0be74af
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/unit/core/profile_manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,17 @@ describe('ProfileManager', () => {
}
});

it('should fail when destPath does not exist', () => {
it('should fail when destPath does not exist', async () => {
const nodeAccountMap = new Map<NodeAlias, string>();
nodeAccountMap.set('node1', '0.0.3');
const destPath = path.join(tmpDir, 'missing-directory');
try {
profileManager.prepareConfigTxt(nodeAccountMap, consensusNodes, destPath, version.HEDERA_PLATFORM_VERSION);
await profileManager.prepareConfigTxt(
nodeAccountMap,
consensusNodes,
destPath,
version.HEDERA_PLATFORM_VERSION,
);
} catch (e) {
expect(e.message).to.contain('config destPath does not exist');
expect(e.message).to.contain(destPath);
Expand Down

0 comments on commit 0be74af

Please sign in to comment.