From 0be74af2605d495dbfc5e40e1289c401feb71722 Mon Sep 17 00:00:00 2001 From: Nathan Klick Date: Sun, 16 Feb 2025 13:53:54 -0600 Subject: [PATCH] fix: additional needed await Signed-off-by: Nathan Klick --- test/unit/core/profile_manager.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/unit/core/profile_manager.test.ts b/test/unit/core/profile_manager.test.ts index fc67943de..a09689fe2 100644 --- a/test/unit/core/profile_manager.test.ts +++ b/test/unit/core/profile_manager.test.ts @@ -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(); 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);