From 779c27ad36b894a93f7c26240ce9cee0864ccf80 Mon Sep 17 00:00:00 2001 From: Arr00 <13561405+arr00@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:48:49 -0500 Subject: [PATCH] Cherry-pick "Fix v5.2 testing" from the release-v5.2 branch (#5342) Co-authored-by: Hadrien Croubois --- .../governance/extensions/GovernorCountingOverridable.test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/governance/extensions/GovernorCountingOverridable.test.js b/test/governance/extensions/GovernorCountingOverridable.test.js index 92e86f450..32ee47439 100644 --- a/test/governance/extensions/GovernorCountingOverridable.test.js +++ b/test/governance/extensions/GovernorCountingOverridable.test.js @@ -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);