소스 검색

Fix v5.2 testing (#5339)

Hadrien Croubois 10 달 전
부모
커밋
7e014ee487
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      test/governance/extensions/GovernorCountingOverridable.test.js

+ 3 - 1
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);