From 6521a99199105e6acb49821496688fe8e722902c Mon Sep 17 00:00:00 2001 From: Mohsen-T Date: Wed, 29 Nov 2023 13:31:33 +0100 Subject: [PATCH] fix: progressing --- test/sanity/balances.ts | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/test/sanity/balances.ts b/test/sanity/balances.ts index e85e01c5..efff7bf9 100644 --- a/test/sanity/balances.ts +++ b/test/sanity/balances.ts @@ -55,7 +55,7 @@ describe('Balance Tests', () => { } }); - it('Check cluster balance after removing operator, progress blocks and confirm', async () => { + it.only('Check cluster balance after removing operator, progress blocks and confirm', async () => { const operatorIds = cluster1.args.operatorIds; const cluster = cluster1.args.cluster; const owner = cluster1.args.owner; @@ -82,10 +82,21 @@ describe('Balance Tests', () => { 'OperatorDoesNotExist', ); - // try to remove the validator again and check the operator removed is skipped - await ssvNetworkContract - .connect(helpers.DB.owners[0]) - .removeValidator(helpers.DataGenerator.publicKey(1), operatorIds, cluster); + // // try to remove the validator again and check the operator removed is skipped + // await ssvNetworkContract + // .connect(helpers.DB.owners[0]) + // .removeValidator(helpers.DataGenerator.publicKey(1), operatorIds, cluster); + + // try to liquidate + await expect(ssvNetworkContract.connect(helpers.DB.owners[0]).liquidate(owner, operatorIds, cluster)).to.emit( + ssvNetworkContract, + 'ClusterLiquidated', + ); + + await expect(ssvViews.getBalance(helpers.DB.owners[0].address, operatorIds, cluster)).to.be.revertedWithCustomError( + ssvViews, + 'ClusterIsLiquidated', + ); }); it('Check cluster balance in three blocks, one after the other', async () => {