Skip to content

Commit 5ceb09c

Browse files
committed
need to still have a config manager populated after reset is performed
Signed-off-by: Jeromy Cannon <[email protected]>
1 parent eb32ccc commit 5ceb09c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/e2e/commands/cluster.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,17 @@ describe('ClusterCommand', () => {
7272
} while (!await chartManager.isChartInstalled(constants.SOLO_SETUP_NAMESPACE, constants.SOLO_CLUSTER_SETUP_CHART))
7373
})
7474

75-
beforeEach(() => configManager.reset())
75+
beforeEach(() => {
76+
configManager.reset()
77+
configManager.update(argv)
78+
})
7679

7780
// give a few ticks so that connections can close
7881
afterEach(async () => await sleep(5))
7982

8083
it('should cleanup existing deployment', async () => {
8184
if (await chartManager.isChartInstalled(constants.SOLO_SETUP_NAMESPACE, constants.SOLO_CLUSTER_SETUP_CHART)) {
82-
await expect(clusterCmd.reset(argv)).to.be.ok
85+
await expect(clusterCmd.reset(argv)).to.eventually.be.ok
8386
}
8487
}).timeout(MINUTES)
8588

0 commit comments

Comments
 (0)