Skip to content

Commit

Permalink
fix tests; add check for two failed executions for one proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Sep 5, 2023
1 parent d229cb7 commit 69c953e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/testcases/parallel/subdao.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,16 @@ describe('Neutron / Subdao', () => {
expect(timelockedProp.msgs).toHaveLength(1);

const res = await subDao.getTimelockedProposalErrors(proposalId2);
expect(res.errors.length).toEqual(0);
expect(res.errors.length).toEqual(1);
expect(res.errors[0].error).toEqual('codespace: undefined, code: 1');

// try execute second time
await subdaoMember1.executeTimelockedProposal(proposalId2);
await neutronChain.blockWaiter.waitBlocks(2);

// should add new error here
const res2 = await subDao.getTimelockedProposalErrors(proposalId2);
expect(res2.errors.length).toEqual(2);
});
});

Expand Down

0 comments on commit 69c953e

Please sign in to comment.