Skip to content

Commit

Permalink
Fix v5.2 testing (#5339)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx authored Dec 4, 2024
1 parent e5e9ff7 commit 7e014ee
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,9 @@ describe('GovernorCountingOverridable', function () {
});

it('can not vote twice', async function () {
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against));
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against))
.to.emit(this.mock, 'VoteCast')
.withArgs(this.voter1, this.helper.id, VoteType.Against, ethers.parseEther('5'), '');
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Abstain))
.to.be.revertedWithCustomError(this.mock, 'GovernorAlreadyCastVote')
.withArgs(this.voter1.address);
Expand Down

0 comments on commit 7e014ee

Please sign in to comment.