diff --git a/src/testcases/parallel/subdao.test.ts b/src/testcases/parallel/subdao.test.ts index 18852084..72f0c6ca 100644 --- a/src/testcases/parallel/subdao.test.ts +++ b/src/testcases/parallel/subdao.test.ts @@ -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'); @@ -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');