Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Sep 15, 2023
1 parent f22db19 commit 23c0815
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/testcases/parallel/subdao.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ describe('Neutron / Subdao', () => {

const timelockedProp = await subdaoMember1.supportAndExecuteProposal(
proposalId3,
); // Q: will throw?
);

expect(timelockedProp.id).toEqual(proposalId3);
expect(timelockedProp.status).toEqual('timelocked');
Expand All @@ -288,7 +288,9 @@ describe('Neutron / Subdao', () => {
//wait for timelock durations
await wait(20);
// timelocked proposal execution failed due to invalid param value
await subdaoMember1.executeTimelockedProposal(proposalId3);
await expect(
subdaoMember1.executeTimelockedProposal(proposalId3),
).rejects.toThrow();
const timelockedProp = await subDao.getTimelockedProposal(proposalId3);
expect(timelockedProp.id).toEqual(proposalId3);
expect(timelockedProp.status).toEqual('timelocked');
Expand Down

0 comments on commit 23c0815

Please sign in to comment.