Skip to content

Commit e6c4e53

Browse files
committed
chore: improve test debugging
Signed-off-by: Nathan Klick <[email protected]>
1 parent 3d1880b commit e6c4e53

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/e2e/commands/network.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ describe('NetworkCommand', () => {
129129
configManager.update(argv)
130130

131131
try {
132-
expect(await networkCmd.destroy(argv)).to.be.true
132+
const destroyResult = await networkCmd.destroy(argv)
133+
expect(destroyResult).to.be.true
133134

134135
while ((await k8.getPodsByLabel(['solo.hedera.com/type=network-node'])).length > 0) {
135136
networkCmd.logger.debug('Pods are still running. Waiting...')
@@ -142,8 +143,8 @@ describe('NetworkCommand', () => {
142143
}
143144

144145
// check if chart is uninstalled
145-
expect(await bootstrapResp.opts.chartManager.isChartInstalled(namespace, constants.SOLO_DEPLOYMENT_CHART))
146-
.to.be.false
146+
const chartInstalledStatus = await bootstrapResp.opts.chartManager.isChartInstalled(namespace, constants.SOLO_DEPLOYMENT_CHART)
147+
expect(chartInstalledStatus).to.be.false
147148

148149
// check if pvc are deleted
149150
await expect(k8.listPvcsByNamespace(namespace)).eventually.to.have.lengthOf(0)

0 commit comments

Comments
 (0)