Skip to content

Commit

Permalink
fix: Ensured the test spinner stops
Browse files Browse the repository at this point in the history
  • Loading branch information
ofekatr committed Aug 11, 2022
1 parent b39e84b commit 5d9d15f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/cli/commands/test/iac/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@ export async function test(

testSpinner?.start(spinnerMessage);

const scanResult = await testLib.test(testConfig);
try {
const scanResult = await testLib.test(testConfig);

return buildOutput({
scanResult,
testSpinner,
projectName,
orgSettings,
options,
});
return buildOutput({
scanResult,
testSpinner,
projectName,
orgSettings,
options,
});
} finally {
testSpinner?.stop();
}
}

async function prepareTestConfig(
Expand Down

0 comments on commit 5d9d15f

Please sign in to comment.