Skip to content

Commit

Permalink
fix: progressing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohsen-T committed Nov 29, 2023
1 parent c5776f7 commit 6521a99
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions test/sanity/balances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 () => {
Expand Down

0 comments on commit 6521a99

Please sign in to comment.