Skip to content

Commit

Permalink
Merge branch 'chore/adapt-dao-tests-to-new-vault' of github.com:neutr…
Browse files Browse the repository at this point in the history
…on-org/neutron-integration-tests into feat/add-new-voting-registry-tests
  • Loading branch information
sotnikov-s committed Sep 19, 2023
2 parents 6a71740 + 57309bf commit 462007d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/testcases/parallel/governance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,46 +92,46 @@ describe('Neutron / Governance', () => {

describe('prepare: bond funds', () => {
test('bond form wallet 1', async () => {
await daoMember1.bondFunds('1000');
await daoMember1.bondFunds('1000000000');
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () =>
await mainDao.queryVotingPower(
daoMember1.user.wallet.address.toString(),
),
async (response) => response.power == 1000,
async (response) => response.power == 1000000000,
20,
);
});
test('bond from wallet 2', async () => {
await daoMember2.bondFunds('1000');
await daoMember2.bondFunds('1000000000');
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () =>
await mainDao.queryVotingPower(
daoMember1.user.wallet.address.toString(),
),
async (response) => response.power == 1000,
async (response) => response.power == 1000000000,
20,
);
});
test('bond from wallet 3 ', async () => {
await daoMember3.bondFunds('1000');
await daoMember3.bondFunds('1000000000');
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () =>
await mainDao.queryVotingPower(
daoMember1.user.wallet.address.toString(),
),
async (response) => response.power == 1000,
async (response) => response.power == 1000000000,
20,
);
});
test('check voting power', async () => {
await wait.getWithAttempts(
neutronChain.blockWaiter,
async () => await mainDao.queryTotalVotingPower(),
async (response) => response.power == 3000,
async (response) => response.power == 3100000000,
20,
);
});
Expand Down

0 comments on commit 462007d

Please sign in to comment.