Skip to content

Commit

Permalink
fix test after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
SamBorisov committed Nov 21, 2024
1 parent fbda956 commit 7d6fcb8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/HydraChain/Inspector.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ export function RunInspectorTests(): void {

await expect(systemHydraChain.connect(this.signers.governance).banValidator(this.signers.validators[0].address))
.to.not.be.reverted;

await expect(
systemHydraChain.connect(this.signers.governance).banValidator(this.signers.validators[0].address)
).to.be.revertedWithCustomError(systemHydraChain, "NoBanSubject");
});

it("should lock commission if validator is banned by the governance", async function () {
Expand All @@ -526,9 +530,7 @@ export function RunInspectorTests(): void {
5, // number of epochs to commit
this.epochSize
);
await expect(
systemHydraChain.connect(this.signers.governance).banValidator(this.signers.validators[0].address)
).to.be.revertedWithCustomError(systemHydraChain, "NoBanSubject");

expect(await hydraDelegation.commissionRewardLocked(this.signers.validators[0].address)).to.be.equal(false);
await expect(systemHydraChain.connect(this.signers.governance).banValidator(this.signers.validators[0].address))
.to.not.be.reverted;
Expand Down

0 comments on commit 7d6fcb8

Please sign in to comment.