Skip to content

Commit

Permalink
test() increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Sep 7, 2023
1 parent 1b573de commit 05cb516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/governor/GovernorZama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('GovernorZama', function () {
['getBalanceOf(address)'],
callDatas,
'do nothing',
{ gasLimit: 1000000 },
{ gasLimit: 500000 },
);
await tx.wait();
const proposalId = await this.governor.latestProposalIds(this.signers.alice.address);
Expand All @@ -52,7 +52,7 @@ describe('GovernorZama', function () {
const txVote = await this.governor['castVote(uint256,bytes)'](1, encryptedSupport);
const results = await txVote.wait();
expect(results?.status).to.equal(1);
});
}).timeout(120000);

it('should cancel', async function () {
await this.comp.delegate(this.signers.alice.address);
Expand All @@ -73,9 +73,9 @@ describe('GovernorZama', function () {
const state = await this.governor.state(proposalId);
expect(state).to.equal(1n);

const txCancel = await this.governor.cancel(proposalId, { gasLimit: 1000000 });
const txCancel = await this.governor.cancel(proposalId);
await txCancel.wait();
const newState = await this.governor.state(proposalId);
expect(newState).to.equal(2n);
});
}).timeout(120000);
});

0 comments on commit 05cb516

Please sign in to comment.