Skip to content

Commit 779c27a

Browse files
arr00Amxx
andauthored
Cherry-pick "Fix v5.2 testing" from the release-v5.2 branch (#5342)
Co-authored-by: Hadrien Croubois <[email protected]>
1 parent 6e05b68 commit 779c27a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/governance/extensions/GovernorCountingOverridable.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ describe('GovernorCountingOverridable', function () {
269269
});
270270

271271
it('can not vote twice', async function () {
272-
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against));
272+
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Against))
273+
.to.emit(this.mock, 'VoteCast')
274+
.withArgs(this.voter1, this.helper.id, VoteType.Against, ethers.parseEther('5'), '');
273275
await expect(this.mock.connect(this.voter1).castVote(this.helper.id, VoteType.Abstain))
274276
.to.be.revertedWithCustomError(this.mock, 'GovernorAlreadyCastVote')
275277
.withArgs(this.voter1.address);

0 commit comments

Comments
 (0)