Skip to content
Prev Previous commit
Next Next commit
add logging
  • Loading branch information
frangio committed Jul 12, 2023
commit fd0ef64303ef0a7c642f55edb020a1ef05428009
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,16 @@ contract('GovernorTimelockControl', function (accounts) {
});

describe('on execute', function () {
it('if not queued', async function () {
it.only('if not queued', async function () {
await this.helper.propose();
await this.helper.waitForSnapshot();
await this.helper.vote({ support: Enums.VoteType.For }, { from: voter1 });
await this.helper.waitForDeadline(+1);

expect(await this.mock.state(this.proposal.id)).to.be.bignumber.equal(Enums.ProposalState.Succeeded);

console.log(this.mock.address, this.proposal.shortProposal[3]);

await expectRevertCustomError(this.helper.execute(), 'TimelockUnexpectedOperationState', [
this.proposal.timelockid,
proposalStatesToBitMap(Enums.OperationState.Ready),
Expand Down