From 7e014ee487869ba35df91eb2cbea42e0f6f002ab Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Wed, 4 Dec 2024 18:29:46 +0100 Subject: [PATCH] Fix v5.2 testing (#5339) --- .../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 92e86f45019..32ee47439f3 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);